Dear all,
I have created a macro in the AOT containing the following:
#localmacro.TRA_Macro_Local1
print Hello local world;
pause;
#endmacro
Now I created a job containing the following:
static void TRA_Macro_Global1(Args _args)
{
#TRA_Macro_Local1
}
I expected I could just call
static void Jobx(Args
_args){#localmacro.TRA_Macro_Local1 print "Hello
local world"; pause;#endmacro
#TRA_Macro_Local1}
now
push F5 (execute)
Otto
-Ursprüngliche Nachricht-Von: Danny Gaethofs
[mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 23. Dezember 2004
14:51An:
Otto, you're defining a local macro:static void Jobx(Args _args) { #localmacro.TRA_Macro_Local1 print "Hello local world"; pause; #endmacro #TRA_Macro_Local1 } Danny wants to use a global one!! The right version would be:Macro Macro1 is listed:#define.salute1(print 'Hello World';
Hello Danny Gaethofs,
÷åòâåðã, 23 äåêàáðÿ 2004 ã., you wrote:
DG How can I put a large amount of code in a macro and execute it at
DG compile time?
just remove #localmacro and use AOT macro name instead:
\Jobs\Test_Macro:
static void Test_Macro(Args _args)
{
;
#TEST_MAcro
}
4 matches
Mail list logo