printing - Is there a portable way to print a message from the C preprocessor? -


i able like

#print "c preprocessor got here!" 

for debugging purposes. what's best / portable way this?

the warning directive closest you'll get, it's not entirely platform-independent:

#warning "c preprocessor got here!" 

afaik works on compilers except msvc, on you'll have use pragma directive:

#pragma message ( "c preprocessor got here!" ) 

Comments

Popular posts from this blog

angularjs - Redirect to a new template in angular js -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

Desktop Launcher for Python Script Starts Program in Wrong Path (Linux) -