From d29f5f4aebd90b1e256967801b28a5990249b2e7 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 16 Mar 2019 19:29:23 +0800 Subject: *luax --- Source/3rdParty/Luax/luax_state.inl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Source/3rdParty/Luax/luax_state.inl') diff --git a/Source/3rdParty/Luax/luax_state.inl b/Source/3rdParty/Luax/luax_state.inl index bd7ca9a..c9a95f6 100644 --- a/Source/3rdParty/Luax/luax_state.inl +++ b/Source/3rdParty/Luax/luax_state.inl @@ -56,7 +56,7 @@ namespace Luax LuaxClass::SetLuaxClassTableRef(state, -1); - const char* type = T::GetLuaxFactoryName(); + cc8* type = T::GetLuaxFactoryName(); SetField(top, type); // reset top @@ -78,8 +78,6 @@ namespace Luax int top = lua_gettop(L); // namespace table assert(lua_istable(L, top)); - const char* type = T::GetLuaxSingletonName(); - // class table. lua_newtable(L); LuaxClass::RegisterLuaxClass(state); @@ -94,10 +92,14 @@ namespace Luax lua_pushvalue(state, -1); lua_setfield(state, -2, "__newindex"); + cc8* type = T::GetLuaxSingletonName(); SetField(top, type); // reset top lua_settop(L, top); + + // ºó´¦Àí + T::RegisterLuaxPostprocess(state); } template -- cgit v1.1-26-g67d0