Problem with macro
#2

You have that error because you put a \ at the end, so the compiler think you want to include the next -empty- line as part of the macro.

There are other problems:

You don't have a third parameter in the pattern, but later you use %3.
You need to add a space between the pattern and the replacement.
You should put the replacement inside brackets.
You should put a ; at the end of the pattern.

pawn Код:
#define percorrerVetor(%1[%2],%3); \
{\
  for(new %3; %3 < %2; %3++)\
  {\
    loopstart:\
  }\
  goto loopstart;\
}
Reply


Messages In This Thread
Problem with macro - by -xy! - 11.12.2009, 11:58
Re: Problem with macro - by yom - 11.12.2009, 12:20

Forum Jump:


Users browsing this thread: 1 Guest(s)