Detect compilation on Bada OS
I would like to do something similar to #ifdef __linux__, but with the bada SDK. Is there a constant defined by default? Also, can I detect when I am compiling for the simulator?
You can, by checking the MingW Compiler's keyword, here's an interesting link that would point you in the right spot... so in theory you could have it this way #ifdef __MINGW32__ /* we're in the simulator target */ #else /* we're in the native target */ #endif
I use something like : #ifdef SHP # define CONFIG_SUPPORT_API_Osp 1 // bada #endif I wish there is also a define that tell sdk version or target api too ..
Use : #ifdef _DEBUG // Your code #endif
How not to output comments using the -C operation in mcpp
C++ Builder File Version not correct
How do you a preprocess statement for #include
Does the preprocessor pass environment variables?
YAML preprocessor / macro processor
Pre-Processing using m4
Is there a practical reason for “#if defined(X) && (X != 0)”?
How to check for presence of a directory in Inno Setup preprocessor?
What are analogs of “#ifdef”, “#ifndef”, “#else”, “#elif”, “#define”, “#undef” in D programming lnaguage?
Image pre-processing in OCR
which is more important, number of variables or subexpressions?
What is the purpose of using #define to define a constant with no value?
Name of file during compile time in Progress 4gl
Triple conditional check with ifdef in M4
How to process map data from OpenStreetMap with Java?
complex preprocessor symbol for ede project