ScummVM API documentation
scripthelper.h
1#ifndef SCRIPTHELPER_H
2#define SCRIPTHELPER_H
3
4#ifndef ANGELSCRIPT_H
5// Avoid having to inform include path if header is already include before
6#include "hpl1/engine/libraries/angelscript/angelscript.h"
7#endif
8
9
10BEGIN_AS_NAMESPACE
11
12// Compile and execute simple statements
13// The module is optional. If given the statements can access the entities compiled in the module.
14// The caller can optionally provide its own context, for example if a context should be reused.
15int ExecuteString(asIScriptEngine *engine, const char *code, asIScriptModule *mod = 0, asIScriptContext *ctx = 0);
16
17// Compile and execute simple statements with option of return value
18// The module is optional. If given the statements can access the entitites compiled in the module.
19// The caller can optionally provide its own context, for example if a context should be reused.
20int ExecuteString(asIScriptEngine *engine, const char *code, void *ret, int retTypeId, asIScriptModule *mod = 0, asIScriptContext *ctx = 0);
21
22END_AS_NAMESPACE
23
24#endif
Definition: angelscript.h:863
Definition: angelscript.h:639
Definition: angelscript.h:793