Code:
PRAGMA_PATH "codes"



Code:
#include "anyscript.c"



Quote:
#include "filename"
#include <filename>
Reads an additional script from the given file name and then continues compiling the original script file. This way a project can contain an arbitrary number of scripts.
Remarks:
Scripts are read from the work folder or from subfolders; in the latter case the path to the script must be given, relative to the work folder. Due to the ambiguity of relative paths, scripts in project subfolders should not include further scripts.
If the script name is given in angular brackets <..>, it is searched in the include folder. The include folder contains all common .h include files and the default.c script.
If the script name is given in double quotes "...", it is first searched in the work folder, then in the path defined by PRAGMA_PATH. The file search PATHs given in a WDL file are irrelevant for #include statements.
If a path to an include script begins with "%EXE_DIR%", it's searched in a subfolder of the program folder (like "%EXE_DIR%\template_7\code\template.c").
Script names must not be longer than 15 characters and must not contain spaces or nonstandard characters.
If no #include statement is found in the main script, acknex.h and default.c are automatically included.
Example (lite-C)
#include <acknex.h> // include for Pure Mode
#include <default.c> // default key functions
#include <mtlFX.c> // default materials and shaders
#include "scripts\venture.c"
#include "%EXE_DIR%\template_7\code\template.c"
See also:
BIND, LEVEL, PATH, RESOURCE, PRAGMA_PATH
&#9658; latest version online


Last edited by rayp; 08/24/12 04:34.

Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;