|
-
October 22nd, 2002, 12:34 PM
#1
__LINE__ MACRO to string literal
Does anyone know how to change the predefined __LINE__ MACRO to a string literal in the context of the pre-processor?
I want to print the current line number by means of #pragma message.
This prints string literal "999":
#pragma message("999")
This is what I want to do:
#pragma message(__LINE__)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|