diff options
author | chai <chaifix@163.com> | 2019-03-27 09:07:54 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-03-27 09:07:54 +0800 |
commit | 66c5fdc564dd892ed265132d6c1378dbe3cebcee (patch) | |
tree | 909848ed622b35c8653c961c9ebed8c574bb150e /source/3rd-party/Luax/luax_class.inl | |
parent | d9041d6e12ded456c17622f7f2e7bbacb9e99b1a (diff) |
*misc
Diffstat (limited to 'source/3rd-party/Luax/luax_class.inl')
-rw-r--r-- | source/3rd-party/Luax/luax_class.inl | 8 |
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)) { |