2005/5/9

     
 

CfgScript Preprocessor statements

artefaktur

| Syntax Elements | Source | Preprocessor | Types | Expressions | Backtick Expressions | Statements | Class | Logging |

With the include preprocessor statement other .csf files can be included into another script file.



PreprocessorStatement
:  IncludeStatement
|  PragmaStrictWeakStatement
|  PragmaCastStatement
;


Note: This are no real preprocessor statements (which are pre processed by a pre-processor) in the scripting language. These statements are only named as preprocessor statement, because they have similar syntax as preprocessor statements in C/C++ and controls the behavior of the interpreter.

Sub chapter pages:

With the include preprocessor statement other .csf files can be included into another script file.

The pragma weak/strong controls how type declarations are requested by the CfgScript interpreter.

The pragma 'cast' directive controls how the interpreter does automatically casting types from one type to another.