how does the #if defined command work?
how does the #if defined command work?
well, it's look at during compilation.. and things are included or excluded depending on the result of the #if statement.
eg:
char name[] = "Uraldor";
#ifdef WIN32
MessageBox(NULL, name, "Hello", MB_OK);
#else
cout << "Hello Uraldor\n";
#endif
or maybe
#ifdef _DEBUG
printf("Error: %s\n", currentString);
#endif
these are not good examples, but you should get the idea
U.
Quidquid latine dictum sit, altum sonatur.
Whatever is said in Latin sounds profound.