Menu

Debugging preprocessor define

Lee G.
2003-01-26
2012-09-26
  • Lee G.

    Lee G. - 2003-01-26

    I was wondering if the compiler defines any preprocessor directive like __DEBUG__ or anything and what is it called.

     
    • Anonymous

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.