From 3f457498b9c39d40a16a0ec6328880854f8cf4de Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 26 Feb 2019 08:48:54 +0800 Subject: *misc --- Source/3rdParty/Luax/luax_class.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Source/3rdParty/Luax/luax_class.h') 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() + /* /// /// 需要暴露给lua的class需要继承此类。 /// 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 -- cgit v1.1-26-g67d0