summaryrefslogtreecommitdiff
path: root/Source/3rdParty/Luax/luax_enum.h
blob: f709885a07bafd1e8c48e615ed62b1e0d40d3f0d (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
#ifndef __LUAX_ENUM_H__
#define __LUAX_ENUM_H__

#include "luax_config.h"

namespace Luax
{

	///
	/// ö٣öһ಻޸ͼϣöٵֵ
	///
	struct LuaxEnum
	{
		cc8* name;
		int  value;
	};

	extern int l_rmt__index(lua_State* L);

	extern int l_rmt__newindex(lua_State* L);

	//--------------------------------------------------------------------------------------------------------------
#ifdef LUAX_ENABLE_PLAIN_ENABLE
	///
	/// luaö٣޸ĵtable
	///
	class LuaxPlainEnum
	{
	public:

		static int registry(lua_State* L);

	};
#endif

}

#endif