#PB_Macro for Defined() compiler function
Posted: Tue Sep 04, 2012 4:25 pm
Hello everyone,
With Defined() compiler function it's possible to define almost everything except macros. A code like this one for example don't work :
For the moment, I convert all macro to procedure or I manage the macro definition manually as a workaround but adding Macro management to Defined() compiler function can be useful.
Best regards
Guimauve
With Defined() compiler function it's possible to define almost everything except macros. A code like this one for example don't work :
Code: Select all
CompilerIf Defined(GadgetDown, #PB_Macro) = 0
Macro GadgetDown(GadgetID, Gap = 0)
(GadgetY(GadgetID) + GadgetHeight(GadgetID) + (Gap))
EndMacro
CompilerEndIf
Best regards
Guimauve