12-13-2005, 07:41 AM
Code:
#define DEBUG
#ifdef DEBUG
# define dprint(msg) open err for output as #24:print #24,"debug: ";msg:close #24
#else
# define dprint(msg):
#endif
If you have for example 100 Lines of debug messages in your code and all works you must remove it all for a final version.
only remove the first line #define DEBUG and all dprint() calls are removed from your code without to do it manualy.
Try it out and have fun.
Joshy
sorry about my english