Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

wut

Name: Anonymous 2012-01-21 14:56

is this in the standard?

#define TEST(a,b) printf(" The value of "  " = " #b " \n", a)

can you simply concat strings like this in compile time? and # gives us name of the operand in a macro? holy shit, never heard of this before

Name: Anonymous 2012-01-21 14:57

>>1
oh wait
#define TEST(a,b) printf(" The value of " #a " = " #b " \n", a)

Name: Anonymous 2012-01-21 15:32

>>2
Yes, it's in the standard and it's all done at compile time.

Don't change these.
Name: Email:
Entire Thread Thread List