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

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -