Created
August 29, 2008 08:50
-
-
Save jeffhung/7941 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#if defined(_CPPRTTI) | |
# define DIRECT_CPPRTTI_DEFINED "yes" | |
#else | |
# define DIRECT_CPPRTTI_DEFINED "no" | |
#endif | |
#define CPPRTTI_DEFINED defined(_CPPRTTI) | |
#if CPPRTTI_DEFINED | |
# define INDIRECT_CPPRTTI_DEFINED "yes" | |
#else | |
# define INDIRECT_CPPRTTI_DEFINED "no" | |
#endif | |
int main() | |
{ | |
printf("DIRECT_CPPRTTI_DEFINED: %s\n", DIRECT_CPPRTTI_DEFINED); | |
printf("INDIRECT_CPPRTTI_DEFINED: %s\n", INDIRECT_CPPRTTI_DEFINED); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment