Most compiler editors create two 'make' files or projects for each module setup. They are debug or developer version and release version. Developer/debug version by default defines a macro named _DEBUG or DEBUG. Release version does not have this macro defined. Thus we can use the preprocessor directive #ifdef or if defined to check if it is a release version.
Code: #ifdef DEBUG ASSERT(mem_pointer == NULL); DBG_PRINT("Allocated memory pointer %p", mem_pointer); #endif
About our authors: Team EQA
You have viewed 1 page out of 248. Your C learning is 0.00% complete. Login to check your learning progress.
Questions index C Questions C++ Questions Win32 MFC COM/DCOM DLL Questions
Compilers & Editors
Download Visual Studio Download XCode Download Visual Studio Code Android studio install sdk Eclipse installer Best C compilers IDEs
Development system setup
Windows media creation tool MSDN subscription Ubuntu virtualbox
New updated posts
Why learn C? Draw on printer Free alt softwares