SuperTuxKart
Loading...
Searching...
No Matches
scriptengine
scriptstdstring.hpp
1
/*
2
AngelCode Scripting Library
3
Copyright (c) 2003-2017 Andreas Jonsson
4
5
This software is provided 'as-is', without any express or implied
6
warranty. In no event will the authors be held liable for any
7
damages arising from the use of this software.
8
9
Permission is granted to anyone to use this software for any
10
purpose, including commercial applications, and to alter it and
11
redistribute it freely, subject to the following restrictions:
12
13
1. The origin of this software must not be misrepresented; you
14
must not claim that you wrote the original software. If you use
15
this software in a product, an acknowledgment in the product
16
documentation would be appreciated but is not required.
17
18
2. Altered source versions must be plainly marked as such, and
19
must not be misrepresented as being the original software.
20
21
3. This notice may not be removed or altered from any source
22
distribution.
23
24
The original version of this library can be located at:
25
http://www.angelcode.com/angelscript/
26
27
Andreas Jonsson
28
andreas@angelcode.com
29
*/
30
31
//
32
// Script std::string
33
//
34
// This function registers the std::string type with AngelScript to be used as the default string type.
35
//
36
// The string type is registered as a value type, thus may have performance issues if a lot of
37
// string operations are performed in the script. However, for relatively few operations, this should
38
// not cause any problem for most applications.
39
//
40
41
#ifndef SCRIPTSTDSTRING_H
42
#define SCRIPTSTDSTRING_H
43
44
#ifndef ANGELSCRIPT_H
45
// Avoid having to inform include path if header is already include before
46
#include <angelscript.h>
47
#endif
48
49
#include <string>
50
51
//---------------------------
52
// Compilation settings
53
//
54
55
// Sometimes it may be desired to use the same method names as used by C++ STL.
56
// This may for example reduce time when converting code from script to C++ or
57
// back.
58
//
59
// 0 = off
60
// 1 = on
61
62
#ifndef AS_USE_STLNAMES
63
#define AS_USE_STLNAMES 0
64
#endif
65
66
BEGIN_AS_NAMESPACE
67
68
void
RegisterStdString(asIScriptEngine *engine);
69
void
RegisterStdStringUtils(asIScriptEngine *engine);
70
71
END_AS_NAMESPACE
72
73
#endif
Generated on Fri May 19 2023 21:44:32 for SuperTuxKart by
1.9.6