The version with the semicolon would be a little easier to handle because I do not always have to take the entire line with me. But the one with the empty macro is also good. Thx
Dude wrote:
Josh wrote:I believe everyone knows what I mean by that.
Sorry, but I don't. What are you trying to request?
I correct my first posting:
I believe that at least the person who is concerned with this question and many others understand what I mean by this request.
when i tried the code i was surprised the comment gets removed before the macro is resolved. i would have thought the opposite, because it could be possible that its actually not a comment after evaluation. i knew spaces (like the indentation) are handled a bit special, but the semicolon is an actual character.
PureBasic is a single-pass compiler so I would imagine that the commented line is discarded while checking the syntax of the macro on the first pass. Otherwise it would have to reparse on insertion of every macro. Although I think it already does this since we do get macro errors reported. It would be up to the PB team if they want to change this behavior.
On a side note, I wonder how C and C++ preprocessors behave with macros like this.