pre-processor stuff

Monkey Targets Forums/Android/pre-processor stuff

pantson(Posted 2011) [#1]
Hi

Just thinking out loud.. Is it possible to have you own pre-processor vars..
#display=1

#if display=1
'do stuff 1
#end

#if display=2
'do different stuff 2
#end

That way in the compiled code there wouldn't be to 2 statements called all the time, as only "do stuff 1" would be in the code.. all "do different stuff 2" would not be in the compilation.


pantson(Posted 2011) [#2]
this kinda belongs in the Monkey code section not specifically for android (oops)


Samah(Posted 2011) [#3]
See this thread:
http://monkeycoder.co.nz/Community/posts.php?topic=1324