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.hpp39
1 files changed, 22 insertions, 17 deletions
diff --git a/source/3rd-party/Luax/luax_class.hpp b/source/3rd-party/Luax/luax_class.hpp
index cfac2a5..99ac381 100644
--- a/source/3rd-party/Luax/luax_class.hpp
+++ b/source/3rd-party/Luax/luax_class.hpp
@@ -13,7 +13,8 @@ namespace Luax
///
/// RegisterLuaxClass עķͳԱö١ȵclass table
- /// LuaxGetFactoryName ùͬʱעʱעΪsingletonͨʱ
+ /// LuaxGetFactoryName ùͬʱעʱעΪsingletonͨ
+ /// ʱ
///
#define LUAX_DECL_FACTORY(type) \
static void RegisterLuaxClass(Luax::LuaxState&);\
@@ -69,8 +70,9 @@ namespace Luax
T* self = state.GetUserdata<T>(1);
///
- /// ࣬Ϊʵֶ̬ҪЩӿڵⲿҪ̳д֮࣬оͻöӦʵķע̳д
- /// ʱʵķʵLuaxNativeClassУʵֻᵼ¶ԡ
+ /// ࣬Ϊʵֶ̬ҪЩӿڵⲿҪ̳д֮࣬оͻ
+ /// öӦʵķע̳дʱʵķʵLuaxNativeClassУʵֻ
+ /// ¶ԡ
///
class ILuaxNativeAccessor
{
@@ -88,7 +90,8 @@ namespace Luax
};
///
- /// Ҫ¶luanative classҪ̳дࡣͨluaʵҪȷüȷԣڶ߳Ҫȷͷš
+ /// Ҫ¶luanative classҪ̳дࡣͨluaʵҪȷüȷԣ
+ /// ߳Ҫȷͷš
///
template<class T>
class LuaxNativeClass : public virtual ILuaxNativeAccessor
@@ -98,8 +101,9 @@ namespace Luax
static bool IsTypeOf(ILuaxNativeAccessor);
///
- /// userdataΪkeyref tableuserdataһãάuserdataڡȽmember ref
- /// ʵᱻαͬʵõƵЩʵ壬luaƵĵgc⡣
+ /// userdataΪkeyref tableuserdataһãάuserdataڡ
+ /// Ƚmember refʵᱻαͬʵõƵЩʵ壬
+ ///luaƵĵgc⡣
///
template<class U> void LuaxRetain(LuaxState& state, U* userdata);
@@ -111,8 +115,8 @@ namespace Luax
bool PushLuaxMemberRef(LuaxState& state, int refID) override;
///
- /// userdata pushջûгʼmUserdataʼúԪѳʼõuserdataջһá
- /// һnativeȨƽluaƵķ
+ /// userdata pushջûгʼmUserdataʼúԪѳʼõ
+ /// userdataջһáһnativeȨƽluaƵķ
///
bool PushLuaxUserdata(LuaxState& state);
bool PushLuaxMemberTable(LuaxState& state);
@@ -143,8 +147,8 @@ namespace Luax
static void PushLuaxClassTable(LuaxState& state);
///
- /// ȡַҪַֻͨڶϴʵõջϺ;̬ıȡַ֤ü׼ȷ
- /// ҪãʹôݶǴݵַ
+ /// ȡַҪַֻͨڶϴʵõջϺ;̬ı
+ /// ȡַ֤ü׼ȷҪãʹôݶǴݵַ
///
void* operator &();
@@ -158,17 +162,18 @@ namespace Luax
///
static LuaxStrongRef mClassTable;
///
- /// ǵsingletonùϵԱ֤ᱻͨref tableijԱȫڵģ
- /// ֱ_LUAX_STRONGREF_TABLEuserdataLuaxRetain\LuaxReleasemember refʱ͹ʵͬ
- /// Ǵref tableģtable_LUAX_STRONGREF_TABLE
+ /// ǵsingletonùϵԱ֤ᱻͨref table
+ /// ijԱȫڵģֱ_LUAX_STRONGREF_TABLEuserdata
+ /// LuaxRetain\LuaxReleasemember refʱ͹ʵͬǴref table
+ /// ģtable_LUAX_STRONGREF_TABLE
///
static LuaxStrongRef mSingletonRefTable;
///
/// ͨuserdataõ:
- /// 1: ref table
- /// 2: member table
- /// 3: class table
+ /// 1: ref table
+ /// 2: member table
+ /// 3: class table
///
LuaxWeakRef mUserdata;
@@ -193,7 +198,7 @@ namespace Luax
#endif
};
- //--------------------------------------------------------------------------------------------------------------
+ //--------------------------------------------------------------------------------//
#if LUAX_ENABLE_PLAIN_CLASS
///