Page tree
Skip to end of metadata
Go to start of metadata

The #define compiler directive defines conditions for conditional compilation. 

The syntax is as follows:

#define condition-name


#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;
#define ranonce

RPG Equivalent:


  • No labels