PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: John Montenigro on June 29, 2015, 11:05:21 AM

Title: Is there a built-in %FireFly constant?
Post by: John Montenigro on June 29, 2015, 11:05:21 AM
I've begun changing some of my .INC files so that one file can be compiled under either FF or PB.

In FF_AppStart, I add this line:  %Firefly = 1

Now, my code contains compiler directives like:   

#IF %def(%Firefly)
   FF_Function
#ELSE
   PB_version
#ENDIF


I can continue to add %FireFly to each project, but I just don't want to forget...

I was wondering if FF already has such a built-in self-identification constant, comparable to the PB built-in constants for: %PB_WIN32 and %PB_CC32

Thanks,
-John

Title: Re: Is there a built-in %FireFly constant?
Post by: Paul Squires on June 29, 2015, 03:01:18 PM
Hi John,

There only equate that is consistently output by Firefly apps is
%USE_JOSE_INCLUDES = 1