Not natively. You can test for it via a de facto standard:
#ifdef NDEBUG
bool debug_mode = false;
#else
bool debug_mode = true;
#endif
This is not an ANSI standard though, but possibly the most portable way to do so.
regards,
PC
Not natively. You can test for it via a de facto standard:
#ifdef NDEBUG
bool debug_mode = false;
#else
bool debug_mode = true;
#endif
This is not an ANSI standard though, but possibly the most portable way to do so.
regards,
PC