#include

C Styled Script
Reference Manual

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using The CSS Executive
Language
Directives
   #include
   #list
   #loadLibrary
   #loadScript
   #logFile
System Library
String Library
Regular Expression Lib.
File Library
Database Library
C API
C++ API
CSS Links
  

Includes a file at compile time.

#include 'KcMthLib'

...or...

static const mathLib = 'KcMthLib';
#include mathLib

If no extension is given, CSS will add the default extension .hss. The file is searched in the paths defined in environment variable CSSPATH. If no CSSPATH 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 automaticly avoid multiple loads (as you would do in C/C++ by a sequence of #ifndef _XXY_ ... #define _XXY_ ... declarations ... #endif)
 Copyright © IBK LandquartLast revised by Peter Koch, 24.02.00<< Back  Top  Next >>