> I could change the source loader so that it adds SOURCE_BUILD to the > qx > namespace. This way the existence of this variable would allow to > differentiate between source and release > builds.
That's one way of doing it, and is probably a good 80/20 solution (20% of the time, 80% of the solution). Another way would be to modify the compiler so blocks of code could be deleted when compiling, which would be more efficient, and would mean we could add things like asserts etc. That would be a significant improvement. The compiler could look for "if (qx.SOURCE_BUILD)" and if found, and doing a release build, it could just not emit the if statement and the corresponding statement block. Hugh ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
