I was wondering if the compiler defines any preprocessor directive like __DEBUG__ or anything and what is it called.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-01-26
The GPP preprocessor does not define a __DEBUG__ macro.
If such a macro were defined it would be the job of the makefile generator (creates makefile.win from project.dev files). I have looked at the generated make files and no such macro is created automatically when debug is enabled (option -g).
You could add your own macro definition with the -D<macro> compiler option, but you would have to manually remove it when you wanted debug code to be removed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was wondering if the compiler defines any preprocessor directive like __DEBUG__ or anything and what is it called.
The GPP preprocessor does not define a __DEBUG__ macro.
If such a macro were defined it would be the job of the makefile generator (creates makefile.win from project.dev files). I have looked at the generated make files and no such macro is created automatically when debug is enabled (option -g).
You could add your own macro definition with the -D<macro> compiler option, but you would have to manually remove it when you wanted debug code to be removed.