Function ExecScript

Top 

Declaration:

void ExecScript(char file_name[], char include_dir[]="", char defines[]="", int debug=0);

Description

The ExecScript function starts the script file, whose name is indicated in the file_name parameter.

Parameters:

file_name[]       The name of the script file to be started. It can contain

                   a partial or full path. If extension is not specified,

                   the CMD extension will be automatically substituted. If the file

                   is not found, the <%CM%> system directory will be automatically scanned.

include_dir[]     The listing of directories, where the compiler will search

                   for the #include-files. You can specify

                   multiple directory names separated by semicolon.

char defines[]    The string with the definitions of preprocessor variables.

                   Also, see the Script Files dialog.

debug             If not equal to 0, then the Script Source window will be

                      opened for the loaded script file. After loading the script

                      file, switches to the debug mode.

Note that only the first parameter is required, other parameters have the default values.

If the specified script file is already under executing, then another script file cannot be loaded.

Also, see Inclusion of Files (#include).