summaryrefslogtreecommitdiff
path: root/source/3rd-party/Luax/luax_class.inl
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-03-29 00:43:25 +0800
committerchai <chaifix@163.com>2019-03-29 00:43:25 +0800
commitf4c338c63f3456a8eccd56c35e233843687d55be (patch)
tree7278fe4723320c9ef310c5a04d92bf0be1bc778c /source/3rd-party/Luax/luax_class.inl
parent3bced067a4144381e59ce4bd0eb749eeff5ad1f4 (diff)
*thread
Diffstat (limited to 'source/3rd-party/Luax/luax_class.inl')
-rw-r--r--source/3rd-party/Luax/luax_class.inl10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/3rd-party/Luax/luax_class.inl b/source/3rd-party/Luax/luax_class.inl
index 7ee3de9..d1c8c4b 100644
--- a/source/3rd-party/Luax/luax_class.inl
+++ b/source/3rd-party/Luax/luax_class.inl
@@ -1,7 +1,7 @@
namespace Luax
{
- //----------------------------------------------------------------------------------------------------------------
+ //--------------------------------------------------------------------------------//
// ӿ
///
@@ -17,7 +17,7 @@ namespace Luax
return 1;
}
- //----------------------------------------------------------------------------------------------------------------
+ //--------------------------------------------------------------------------------//
///
/// עṤ͵еԱ
@@ -205,8 +205,8 @@ namespace Luax
assert(!T::IsLuaxClassSingleton());
assert(!mUserdata);
- // userdataջ
- state.PushPtrUserdata(this);
+ // userdataջעַҪתΪT*ֱthisܻᵼ¶ؼ̳еɥʧ̬
+ state.PushPtrUserdata(static_cast<T*>(this));
lua_newtable(state); // ref table޷luaʣC
lua_newtable(state); // member tableluaдĶԱ
@@ -315,7 +315,7 @@ namespace Luax
}
}
- //--------------------------------------------------------------------------------------------------------------
+ //--------------------------------------------------------------------------------//
///
/// ͷŹʵ