#if / #else / #endif

C Scripting Language
Reference Manual
Version 4.4.0

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using the CSL executive
Language
Directives
   #include
   #list
   #loadLibrary
   #loadScript
   #logFile
   #if / #else / #endif
   #message
   #error
   #block
System library
String library
Math library
Regular expression lib.
File library
Database library
Async Communication
Registry/Profile handling
Windows control
C API
C++ Class Interface
CSL links
  

Enables conditional compilation:

#if const expression
  code compiled when true
[#else
  code compiled when false]
#endif

Useful for writing portable scripts as:

#loadLibrary 'ZcSysLib'   // load system library
 
#if sysIsUnixFamily
  (Code for unixish systems)
#else
  (Code for Windows or OS/2)
#endif
  Copyright © IBK Landquart Last revision: 27.05.2002 << Back  Top  Next >>