Since Lua doesn’t a include a preprocessor it would be nice if corona could include one.
Why we need a preprocessor? Examples:
#if ANDROID
mySound = “boom.wav”
#else
mySound =“boom.caf”
#endif
#if IPAD
myImage = “boom-1024x768.png”
#else
myImage =“boom-320x480.png”
#endif
#if DEBUG
print “Current position:”… bomb.x…bomb.y
#endif
http://lua-users.org/wiki/LuaFaq (How is conditional compilation done in Lua?) [import]uid: 3642 topic_id: 870 reply_id: 300870[/import]