Generating definition via macro - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Generating definition via macro (
/showthread.php?tid=457619)
Generating definition via macro -
Misiur - 12.08.2013
Hi there, this time I'm on this side of thread. So
pawn Код:
#define Example%0\32;%1! #define ABC %1
#define Foobar Result: ABC
Example CBA!
Foobar //Result: CBA
ABC //CBA
Of course this doesn't work, but is it possible to assign value from macro into normal substitution without arguments?
Re: Generating definition via macro -
Pupak - 12.08.2013
It's not possible to do it, you can't use compiler directive inside another one. Why would you need it anyway?