#include

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
  

Includes a file at compile time.

#include 'ZcMathLb'

...or...

static const mathLib = 'ZcMathLb';

#include mathLib

If no extension is given, CSL will add the default extension .csl. The file is searched in the paths defined in environment variable CSLPATH. If no CSLPATH is defined the file is searched in the current working directory.

NOTE: #include will perform unconditionally which may by a problem when the same file is included from several sources. You'd better use #loadScript to load forward declaration because that will automatically avoid multiple loads (as you would do in C/C++ by a sequence of #ifndef _XXY_ ... #define _XXY_ ... declarations ... #endif)

  Copyright © IBK Landquart Last revision: 27.05.2002 << Back  Top  Next >>