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

Gfortran pre-processor directives for Different Operating systems
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?

Categories

HOME
go
beautifulsoup
oracle12c
design-patterns
checkstyle
rdbms
twig
depth
static
yahoo-finance
requirements
yandex
interpolation
missing-data
computer-science
plist
resultset
x-cart
gkturnbasedmatch
template-engine
google-container-registry
google-maps-autocomplete
imagemap
object-storage
progress-bar
8051
wcag
google-cast
powershell-ise
mustache
cart
wacom
gojs
gnat-gps
fossil
installscript
signals-slots
numberpicker
watchface
sharp-snmp
puredata
mesosphere
proget
builder
jqchart
java-websocket
filenet
gets
cubism.js
winusb
pacemaker
latin
firebase-security
phpwebsocket
invoke-sqlcmd
highland.js
custom-errors
dynatree
roadkill-wiki
extjs-grid
rapidsvn
structuremap3
appserver
create.js
grails-domain-class
vbe
artemis
octal
sqlclr
listitem
urlrewriter
workflow-services
cloudfiles
facebook-iframe
non-clustered-index
easyb
strtod
web-application-project
httpcookie
movieplayer
appliance

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