File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55extern "C" {
66#endif
77
8+ // opaque pointer to a DaScriptEngine C++ class
89typedef struct DaScriptVm DaScriptVm ;
910
11+ /// Creates a new dascript vm
1012DaScriptVm * DaScriptEngineCreate (void );
13+
14+ /// Destroys the dascript vm
1115void DaScriptEngineDestroy (DaScriptVm * self );
16+
17+ /// Tries to compile the script named script_name
18+ /// It will look in the scripts folder for a script named script_name.das
19+ /// Works with scripts in subfolders
20+ /// Returns wether or not it succeeded, and logs the errors
1221bool DaScriptEngineCompileScript (DaScriptVm * self , const char * script_name );
22+
23+ /// Tries to run the script named script_name
24+ /// Returns wether or not it succeeded, and logs the errors
1325bool DaScriptEngineRunScript (DaScriptVm * self , const char * script_name , const char * entry );
1426
1527#ifdef __cplusplus
You can’t perform that action at this time.
0 commit comments