also i tried this but no luck.
if( tok == zirDirective)
http://www.freewebs.com/ogremagic/index.htm
also i tried this but no luck.
if( tok == zirDirective)
http://www.freewebs.com/ogremagic/index.htm
oh sorry my mistake, zirDirective works well.
thanks.
http://www.freewebs.com/ogremagic/index.htm
good to hear, look forward to seeing your update :)
ok , i think there is a bug in inline function.
here is my define code
#define Absi(x) eax=x; cdq; xor eax,edx; eax-=edx;
this macro return the abslute value.
it converted to this by define handler
inline function Absi(x){eax = $x ; cdq ; xor eax , edx ; eax -= edx ; $return eax }
the problem is here , when put this code it complied ok
print( Absi(100) , '\r\n');
and this refused to compile
print( Absi(-100) , '\r\n');
and give this error
[55,18]: Expected , or ) but found 100 in [test_def.zir] Code: print( Absi(-100) , '\r\n');
http://www.freewebs.com/ogremagic/index.htm