ScummVM API documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
scriptstdstring.h
1
//
2
// Script std::string
3
//
4
// This function registers the std::string type with AngelScript to be used as the default string type.
5
//
6
// The string type is registered as a value type, thus may have performance issues if a lot of
7
// string operations are performed in the script. However, for relatively few operations, this should
8
// not cause any problem for most applications.
9
//
10
11
#ifndef SCRIPTSTDSTRING_H
12
#define SCRIPTSTDSTRING_H
13
14
#ifndef ANGELSCRIPT_H
15
// Avoid having to inform include path if header is already include before
16
#include "hpl1/engine/libraries/angelscript/angelscript.h"
17
#endif
18
19
//---------------------------
20
// Compilation settings
21
//
22
23
// Sometimes it may be desired to use the same method names as used by C++ STL.
24
// This may for example reduce time when converting code from script to C++ or
25
// back.
26
//
27
// 0 = off
28
// 1 = on
29
#ifndef AS_USE_STLNAMES
30
#define AS_USE_STLNAMES 0
31
#endif
32
33
// Some prefer to use property accessors to get/set the length of the string
34
// This option registers the accessors instead of the method length()
35
#ifndef AS_USE_ACCESSORS
36
#define AS_USE_ACCESSORS 0
37
#endif
38
39
BEGIN_AS_NAMESPACE
40
41
void
RegisterStdString(
asIScriptEngine
*engine);
42
void
cleanupRegisteredString();
43
44
END_AS_NAMESPACE
45
46
#endif
asIScriptEngine
Definition:
angelscript.h:639
engines
hpl1
engine
libraries
angelscript
add-ons
scriptstdstring.h
Generated on Wed Apr 9 2025 09:14:32 for ScummVM API documentation by
1.8.13