preprocessor


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

Related Links

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

Categories

HOME
adal
cheerio
sitecore
solaris
package
telegram-bot
x264
categorical-data
emoji
automatic-ref-counting
libusb
entity-relationship-model
genexus-sd
angular-translate
browser-sync
gp
carrierwave
clickjacking
linkedhashmap
github3.py
openwhisk
xcode7.3
flatmap
opensmpp
doc
escpos
stylecop
ovf
serde
wcftestclient
dbcontext
tf
aquamacs
modelsim
cup
otp
template-toolkit
gameplay-kit
rmongo
angular2-testing
tooleap
shopping
qiime
deep
tracker-enabled-dbcontext
data-protection
cda
ellucian-scribe
findfirst
oracle-spatial
opserver
doctype
jdk1.7
teamcity-9.1
zxspectrum
code-documentation
sql-scripts
ray
jquery-slider
android-framework
qscrollarea
visual-studio-express
gtm-oauth2
code-duplication
android-icons
composite-component
twisted.web
android-sdk-2.3
monotouch.dialog
boost-signals
appjs
httponly
window-decoration
convention
expression-blend-4
workflow-services
google-floodlight
ie-compatibility-mode
sifr3

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App