Sambar Server Documentation
|
CScript #define |
#define MAJOR_VERSION 5 #define MINOR_VERSION 0
The above #define directive is functionally equivalent to:
const int MAJOR_VERSION 5; const int MINOR_VERSION 0;
In C, the #define statement results in a textual substitution at code compilation time, whereas the const variable is a typed variable. Since CScript performs dynamic type juggling, there is no distinction between these two constructs. But result in the creation of variables that cannot be modified by the program.