blob: dbbd2f288ba184f05223f3c0a565d23a4b97de8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#ifndef __LUA_BIND_ENUM_H__
#define __LUA_BIND_ENUM_H__
#include "LuaBindConfig.h"
namespace LuaBind
{
///
/// 导出枚举,枚举是一类不可修改整型集合,枚举的值在
///
struct Enum
{
cc8* name;
int value;
};
extern int _rmt__index(lua_State* L);
extern int _rmt__newindex(lua_State* L);
//--------------------------------------------------------------------------------//
#if LUA_BIND_ENABLE_PLAIN_ENUM
///
/// 纯lua的枚举,创建不可修改的table
///
class PlainEnum
{
public:
static int registry(lua_State* L);
};
#endif
}
#endif
|