C - Conditional Compilation2
Revision as of 09:30, 23 June 2015 by Jshankar (1 revision imported: EdWiki -- Emsys pages from Shukra)
Conditional Compilation ...
- e.g, 1
To make sure that the contents of file hdr.h are included only once, the contents of the file are surrounded with a condition like this
#if !defined(HDR) #define HDR // contents of hdr.h go here #endif
- e.g, 2
#ifdef identifier is equ #if defined identifier #ifndef is equ #if !defined identifier