15.10.2009, 07:15
Alright, I've been googling quite alot but I couldn't find anything giving me an answer to this yet. I am still searching but I thought that I might as well as you guys if you already had this question bother you and if you know more then I do.
My question is if it is possible to use a define in a define, e.g:
Everytime I seem to try it with anything I could think of, I end up having these two errors:
Which is:
Error 075:
Either the source file contains a very long line, or text substitutions
make a line that was initially of acceptable length grow beyond its
bounds. This may be caused by a text substitution that causes
recursive substitution (the pattern matching a portion of the
replacement text, so that this part of the replacement text is also
matched and replaced, and so forth).
Error 010:
The compiler expects a declaration of a global variable or of a
function at the current location, but it cannot interpret it as such.
Well, this is slightly what I am trying to do:
My question is if it is possible to use a define in a define, e.g:
pawn Код:
#define Something(%1) \
#if defined Somethingelse \
// do something with %1 \
#endif
Код:
error 075: input line too long (after substitutions) error 010: invalid function or declaration
Error 075:
Either the source file contains a very long line, or text substitutions
make a line that was initially of acceptable length grow beyond its
bounds. This may be caused by a text substitution that causes
recursive substitution (the pattern matching a portion of the
replacement text, so that this part of the replacement text is also
matched and replaced, and so forth).
Error 010:
The compiler expects a declaration of a global variable or of a
function at the current location, but it cannot interpret it as such.
Well, this is slightly what I am trying to do:
pawn Код:
#define Something(%1) \
#if defined Somethingelse \
new %1; \
#endif