Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 4 Next »

The #endif compiler directive is used to end the most recent #if, #elseif or #else group.

Following the #endif directive, if the matching #if directive was a selected line, lines are unconditionally selected. Otherwise, the entire #if group was not selected, so lines continue to be not selected.

 

Example:

#if not defined(ranonce)
  // this code will only run one time 
  // even if this source file is included more than once with #include
  number = number + 1;
#endif
#define ranonce

 

RPG Equivalent:

/ENDIF


  • No labels