KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is is possible to print to stderr the value of a preprocessor variable in C ? For example, what I have right now is: #define PP_VAR (10) #if (PP_VAR > 10) #warning PP_VAR is greater than 10 #endif But what I'd like to do is: #define PP_VAR (10) #if (PP_VAR > 10) #warning PP_VAR=%PP_VAR% #endif Is something like this possible in C ?
Tags (comma-separated)
Save Edits
Cancel