Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 459 Bytes

CONDCOMP.md

File metadata and controls

19 lines (16 loc) · 459 Bytes

Preprocessor / conditional compilation

Directives from EC:

  • #ifdef <symbol>
  • #ifndef <symbol>
  • #endif

New directives with ECX:

  • #else "else"
  • #elifdef <symbol> "else if defined"
  • #elifndef <symbol> "else if not defined"

Notes:

Conditional compilation directives are "free-form", and may be put anywhere on a line and does not need to be terminated with newline.

#ifdef DEBUG WriteF('x=\\d\\n', x := y) #else x := y #endif