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 Page History

« Previous Version 2 Next »

The #define compiler directive defines conditions for conditional compilation. 

The syntax is as follows:

#define condition-name


Example:

#if not defined(ranonce)
  // this code will only run one time 
  // even if this source file is included more than once in a program, using pjs.include()
  number = number + 1;
#endif
#define ranonce


RPG Equivalent:

/DEFINE

  • No labels