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

Good data set for Pre-processing
IDE inserts incorrect #include statement
Save string in C preprocessor
Fortran preprocessing with Portland compiler
Making a macro expansion dependent on its arguments
How to set ISPP defines based on default Inno Setup variables?
standalone C++ preprocessor
Annotations in OCaml
Obtaining the include paths cpp searches
Test for empty macro definition
m4 does not obey expansion?
Detect compilation on Bada OS
Which of the C-family languages have a preprocessor?
Generic preprocessor: How to use for any kind of file?
What's the macro to distinguish ifort from other fortran compilers?
Inno Setup: How do I see the output (translation) of the Inno Setup Preprocessor?

Categories

HOME
assembly
twitter-bootstrap-3
gdb
ecmascript-6
google-spreadsheet
toolbox
fftw
jelastic
sitecore
parameters
android-json
angularfire2
special-characters
performancepoint
mql5
heap
startup
jsonpath
gkturnbasedmatch
entitymanager
production
topology
event-store
qliksense
tosca
epsilon
draft-js-plugins
slidetoggle
pic32
handler
soot
tpm
jaws
testcomplete
calculation
hreflang
gnat-gps
alphabetical
ods
google-data-api
typesafe-config
install.packages
logback-groovy
opencmis
servermanager
builder
jquery-ui-draggable
lightning
google-cse
reindex
custom-font
pdf-conversion
seq
donations
choice
slackware
cudd
simplepie
wso2developerstudio
gogs
omniauth-facebook
fuzzywuzzy
pushbots
file-move
binomial-theorem
rpart
typemock
apache-commons-daemon
osc
shopizer
cross-join
apache-spark-1.3
delayed-execution
filesplitting
browserify-shim
teaspoon
gnumeric
windows-embedded-standard
jammer
ie8-compatibility-mode
facebook-timeline
onload-event
cascadingdropdown
mkv
midlet
window-decoration
ikimagebrowserview
filemerge
catransform3d
update-statement
strsep
objective-j
message-passing
tabpanel
scrollbars
data-mapping
purepdf
wordprocessingml
cuda.net
product-management
change-management

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App