summaryrefslogtreecommitdiff
path: root/source/3rd-party/Luax/luax_class.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/3rd-party/Luax/luax_class.hpp')
-rw-r--r--source/3rd-party/Luax/luax_class.hpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/3rd-party/Luax/luax_class.hpp b/source/3rd-party/Luax/luax_class.hpp
index bfb1a4d..08b4e3f 100644
--- a/source/3rd-party/Luax/luax_class.hpp
+++ b/source/3rd-party/Luax/luax_class.hpp
@@ -21,9 +21,17 @@ namespace Luax
static void RegisterLuaxPostprocess(Luax::LuaxState&); \
static const char* GetLuaxFactoryName() { return #type; };\
static const char* GetLuaxClassName() { return #type; };\
- static bool IsLuaxClassSingleton() { return false; };
+ static bool IsLuaxClassSingleton() { return false; }
///
+ /// Ϊij󹤳ʹô˺꣬עһڣעắеãעЩ
+ ///
+ ///
+#define LUAX_DECL_ABSTRACT_FACTORY() \
+ static void RegisterLuaxClass(Luax::LuaxState&);\
+ static void RegisterLuaxPostprocess(Luax::LuaxState&)
+
+ ///
/// RegisterLuaxClass עķͳԱö١ȵclass table
/// LuaxGetSingletonName õ
///
@@ -32,7 +40,7 @@ namespace Luax
static void RegisterLuaxPostprocess(Luax::LuaxState&); \
static const char* GetLuaxSingletonName() { return #type; }; \
static const char* GetLuaxClassName() { return #type; }; \
- static bool IsLuaxClassSingleton() { return true; };
+ static bool IsLuaxClassSingleton() { return true; }
#define LUAX_DECL_METHOD(mtd) static int mtd(lua_State* L)