#ifdef
is not specific to opengl. It is a pre-processor directive that only compiles the code between #ifdef
and #endif
when the specified symbol (DEBUG
) is defined by the compiler.
The code block you have posted is probably written by someone that only wanted the code to be compiled (and run) for DEBUG builds. (not final release / production).