This wiki is out of date, use the continuation of this wiki instead

Precompiler ifndef

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 13:55, 30 December 2007 (edit)
Sandman (Talk | contribs)
(New page: category:precompiler == Definition == '''#ifndef''' <what to check> :<if block> ['''#else :<else block>] '''#endif''' Checks if ''what to check'' was previously defined in the code. ...)
← Previous diff
Current revision (13:55, 30 December 2007) (edit) (undo)
Sandman (Talk | contribs)
(New page: category:precompiler == Definition == '''#ifndef''' <what to check> :<if block> ['''#else :<else block>] '''#endif''' Checks if ''what to check'' was previously defined in the code. ...)
 

Current revision


[edit] Definition

#ifndef <what to check>

<if block>

[#else

<else block>]

#endif

Checks if what to check was previously defined in the code. If it isn't, the code in if block will be compiled. If it is, the code in else block will be compiled or when there is no else block, the compiler will continue after #endif.

It is the opposite of #ifdef.


Precompiler statements
#define#ifdef#ifndef#endif#else#if
Personal tools