UGDK
0.4.1
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
defs.h
Go to the documentation of this file.
1
2
#ifndef UGDK_SCRIPT_LUA_DEFS_H_
3
#define UGDK_SCRIPT_LUA_DEFS_H_
4
5
#ifndef lua_h
6
extern
"C"
{
7
struct
lua_State
;
8
typedef
struct
lua_State
lua_State
;
9
typedef
int (*
lua_CFunction
)(
lua_State
*);
10
}
11
#endif
12
13
#include <list>
14
#include <map>
15
16
namespace
ugdk {
17
namespace
script {
18
namespace
lua {
19
20
typedef
int
DataID
;
21
typedef
std::list<DataID>
DataBuffer
;
22
typedef
std::map<DataID,DataID>
DataMap
;
23
typedef
void
*
UData
;
24
25
template
<
class
T>
26
UData
AsUData
(T* p) {
return
static_cast<
UData
>
(p); }
27
28
template
<
class
T>
29
UData
AsUData
(
const
T* p) {
30
return
AsUData
(const_cast<T*>(p));
31
}
32
33
}
/* namespace lua */
34
}
/* namespace script */
35
}
/* namespace ugdk */
36
37
38
#endif
/* UGDK_SCRIPT_LUA_DEFS_H_ */
src
ugdk
script
languages
lua
defs.h
Generated on Sat Oct 13 2012 02:25:11 for UGDK by
1.8.2