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
10
BEGIN_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.
15
int
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.
20
int
ExecuteString(
asIScriptEngine
*engine,
const
char
*code,
void
*ret,
int
retTypeId,
asIScriptModule
*mod = 0,
asIScriptContext
*ctx = 0);
21
22
END_AS_NAMESPACE
23
24
#endif
asIScriptModule
Definition:
angelscript.h:793
asIScriptContext
Definition:
angelscript.h:863
asIScriptEngine
Definition:
angelscript.h:639
engines
hpl1
engine
libraries
angelscript
add-ons
scripthelper.h
Generated on Wed Sep 3 2025 09:10:22 for ScummVM API documentation by
1.8.13