Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - #endif conditional compilation end http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 #endif              Conditional compilation end
------------------------------------------------------------------------------
 Syntax
   #ifdef|#ifndef <macroname>
      <statements>
   #else
      <statements>
   #endif

 Arguments
   None.

 Description
   The #endif directive terminates a conditional compilation block.

 Example
   #define EXAMPLE_DIRECTIV
   #include example.hdr

   #define VER_DEBUG // include additional code if this macro switch is on
   
   #ifndef VER_DEBUG
      #pragma STACK- // exclude code in the production version
      #pragma RANGE-
   #endif
   
   proc Test_852
   vardef
      _SLIST pList
   enddef
   #ifdef VER_DEBUG
      ? pickvalidate( pList ) // check if a list is properly set up
   #endif
   endproc

   proc main
   Test_852()
   endproc

See Also: #ifdef #ifndef

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson