summaryrefslogtreecommitdiff
path: root/Source/3rdParty
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-02-26 08:48:54 +0800
committerchai <chaifix@163.com>2019-02-26 08:48:54 +0800
commit3f457498b9c39d40a16a0ec6328880854f8cf4de (patch)
tree061ef9974b4da4c472909a65e6ebd10e8156c1b3 /Source/3rdParty
parent684f71790401727cc45f4dad1822ddae46305072 (diff)
*misc
Diffstat (limited to 'Source/3rdParty')
-rw-r--r--Source/3rdParty/Luax/luax_class.h14
-rw-r--r--Source/3rdParty/Luax/luax_runtime.h6
2 files changed, 12 insertions, 8 deletions
diff --git a/Source/3rdParty/Luax/luax_class.h b/Source/3rdParty/Luax/luax_class.h
index 46918af..1721ec4 100644
--- a/Source/3rdParty/Luax/luax_class.h
+++ b/Source/3rdParty/Luax/luax_class.h
@@ -6,18 +6,18 @@
namespace Luax
{
+#define LUAX_DECL_METHOD(MTD) static int MTD(lua_State*)
+#define LUAX_DECL_FACTORY(CLS) static int RegisterLuaClass(lua_State*);
+#define LUAX_DECL_SINGLETON(CLS)
+
+#define LUAX_REGISTER_CLASS(CLS) CLS::RegisterLuaType()
+ /*
///
/// Ҫ¶luaclassҪ̳дࡣ
///
class LuaxClass
{
public:
-
-#define LUAX_DECL_METHOD(MTD) static int MTD(lua_State*)
-#define LUAX_DECL_FACTORY(CLS)
-#define LUAX_DECL_SINGLETON(CLS)
-
-#define LUAX_REGISTER_CLASS(CLS) CLS::RegisterLuaType()
static void RegisterLuaType();
@@ -46,7 +46,7 @@ namespace Luax
private:
};
-
+ */
}
#endif \ No newline at end of file
diff --git a/Source/3rdParty/Luax/luax_runtime.h b/Source/3rdParty/Luax/luax_runtime.h
index a0dbea3..94d8ecc 100644
--- a/Source/3rdParty/Luax/luax_runtime.h
+++ b/Source/3rdParty/Luax/luax_runtime.h
@@ -4,7 +4,11 @@
namespace Luax
{
-
+ enum RegisterIndex
+ {
+ LUAX_OBJECT_INDEX = 1,
+ LUAX_OBJECT_MODULE = 2,
+ };
}