Page 1 of 1

#PB_Macro for Defined() compiler function

Posted: Tue Sep 04, 2012 4:25 pm
by Guimauve
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 :

Code: Select all

CompilerIf Defined(GadgetDown, #PB_Macro) = 0
  
  Macro GadgetDown(GadgetID, Gap = 0)
    (GadgetY(GadgetID) + GadgetHeight(GadgetID) + (Gap))
  EndMacro
  
CompilerEndIf
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

Re: #PB_Macro for Defined() compiler function

Posted: Tue Sep 04, 2012 4:28 pm
by jassing
+1 for that ...

Re: #PB_Macro for Defined() compiler function

Posted: Tue Sep 04, 2012 9:36 pm
by STARGĂ…TE
has been already discussed
Defined(Foo, #PB_Macro) ?