diff options
Diffstat (limited to 'source/external')
-rw-r--r-- | source/external/Luax/luax_class.hpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/source/external/Luax/luax_class.hpp b/source/external/Luax/luax_class.hpp index c39138d..193ecff 100644 --- a/source/external/Luax/luax_class.hpp +++ b/source/external/Luax/luax_class.hpp @@ -19,11 +19,11 @@ namespace Luax class LuaxVM; - /// - /// RegisterLuaxClass עķͳԱö١ȵclass table - /// LuaxGetFactoryName ùͬʱעʱעΪsingletonͨ - /// ʱ - /// +/// +/// RegisterLuaxClass עķͳԱö١ȵclass table +/// LuaxGetFactoryName ùͬʱעʱעΪsingletonͨ +/// ʱ +/// #define LUAX_DECL_FACTORY(type, ...) \ friend class Luax::LuaxState; \ friend class Luax::LuaxNativeClass<type,##__VA_ARGS__>; \ @@ -33,18 +33,18 @@ namespace Luax static const char* GetLuaxClassName() { return #type; };\ static bool IsLuaxClassSingleton() { return false; } - /// - /// Ϊijʹô˺꣬עһڣעắеãעЩ - /// - /// +/// +/// Ϊijʹô˺꣬עһڣעắеãעЩ +/// +/// #define LUAX_DECL_ABSTRACT_FACTORY() \ static void RegisterLuaxClass(Luax::LuaxState&);\ static void RegisterLuaxPostprocess(Luax::LuaxState&) - /// - /// RegisterLuaxClass עķͳԱö١ȵclass table - /// LuaxGetSingletonName õ - /// +/// +/// RegisterLuaxClass עķͳԱö١ȵclass table +/// LuaxGetSingletonName õ +/// #define LUAX_DECL_SINGLETON(type, ...) \ friend class Luax::LuaxState; \ friend class Luax::LuaxNativeClass<type,##__VA_ARGS__>; \ @@ -58,20 +58,20 @@ namespace Luax #define LUAX_DECL_ENUM(e, under_line_index) - /// - /// ʵֵĺꡣһL - /// +/// +/// ʵֵĺꡣһL +/// #define LUAX_IMPL_METHOD(type, f) int type::f(lua_State* L) - /// - /// Ӧóʵֵӿڡһstate - /// +/// +/// Ӧóʵֵӿڡһstate +/// #define LUAX_REGISTRY(type) void type::RegisterLuaxClass(Luax::LuaxState& state) #define LUAX_POSTPROCESS(type) void type::RegisterLuaxPostprocess(Luax::LuaxState& state) - /// - /// עĺꡣ֮ǰÿɱ꣬ûluaclastable refûעԡ - /// +/// +/// עĺꡣ֮ǰÿɱ꣬ûluaclastable refûעԡ +/// #define LUAX_REGISTER_FACTORY(state, param) state.RegisterFactory<param>() #define LUAX_REGISTER_SINGLETON(state, param) state.RegisterSingleton<param>() #define LUAX_REGISTER_ABSTRACT_FACTORY(state, type) type::RegisterLuaxPostprocess(state) |