summaryrefslogtreecommitdiff
path: root/source/3rd-party/Luax/luax_class.inl
diff options
context:
space:
mode:
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
}
}
- //--------------------------------------------------------------------------------------------------------------
+ //--------------------------------------------------------------------------------//
///
/// ͷŹʵ