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.inl8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/3rd-party/Luax/luax_class.inl b/source/3rd-party/Luax/luax_class.inl
index e2b8de8..7ee3de9 100644
--- a/source/3rd-party/Luax/luax_class.inl
+++ b/source/3rd-party/Luax/luax_class.inl
@@ -363,8 +363,8 @@ namespace Luax
#if LUAX_ENABLE_NATIVE_EXTEND
///
- /// ࣬luaijԱΪƣDZ֤userdataͳһNative classṩCtor֧֣
- /// nativeʵ崴ʹCtorгʼӵкͻһNewбnativeһ͡
+ /// ࣬luaijԱΪƣDZ֤userdataͳһNative classṩ__init֧֣
+ /// nativeʵ崴ʹ__initгʼӵкͻһNewбnativeһ͡
///
template<typename T>
int LuaxNativeClass<T>::l_ExtendFactory(lua_State* L)
@@ -541,8 +541,8 @@ namespace Luax
int args = state.AbsIndex(-1 - n);
- // ԵCtor
- lua_getfield(L, lua_upvalueindex(1), "Ctor");
+ // Ե__init
+ lua_getfield(L, lua_upvalueindex(1), "__init");
if (state.IsType(-1, LUA_TFUNCTION))
{