PDA

View Full Version : function-like macro declaration possible?



evenflcw
05-06-2010, 12:34 PM
Are function-like macro declaration possible in lscript?

Like in c:
#define ADD(x,y) ((x)+(y))

will expand

res = ADD(111,222);

to

res = ((111)+(222));

The above doesn't work, but I'm thinking maybe there is some extra symbol I need to use to "tokenize" the arguments x and y.