summaryrefslogtreecommitdiff
path: root/source/external/Luax/luax_enum.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-06-06 00:11:18 +0800
committerchai <chaifix@163.com>2019-06-06 00:11:18 +0800
commit88b882ed0b432c6aff2063213e2f793a36dd25f7 (patch)
tree5fe5d5334050e1a1146aa63e61e88aa2f5170727 /source/external/Luax/luax_enum.h
parentf6c0498c9728a286c13980ed3b60763d02e1b3a0 (diff)
*misc
Diffstat (limited to 'source/external/Luax/luax_enum.h')
-rw-r--r--source/external/Luax/luax_enum.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/source/external/Luax/luax_enum.h b/source/external/Luax/luax_enum.h
new file mode 100644
index 0000000..9afece2
--- /dev/null
+++ b/source/external/Luax/luax_enum.h
@@ -0,0 +1,39 @@
+#ifndef __LUAX_ENUM_H__
+#define __LUAX_ENUM_H__
+
+#include "luax_config.h"
+
+namespace Luax
+{
+
+ ///
+ /// ö٣öһ಻޸ͼϣöٵֵ
+ ///
+ struct LuaxEnum
+ {
+ cc8* name;
+ int value;
+ };
+
+ extern int _rmt__index(lua_State* L);
+
+ extern int _rmt__newindex(lua_State* L);
+
+ //--------------------------------------------------------------------------------//
+
+#if LUAX_ENABLE_PLAIN_ENUM
+ ///
+ /// luaö٣޸ĵtable
+ ///
+ class LuaxPlainEnum
+ {
+ public:
+
+ static int registry(lua_State* L);
+
+ };
+#endif
+
+}
+
+#endif \ No newline at end of file