summaryrefslogtreecommitdiff
path: root/Source/3rdParty/Luax/luax_state.inl
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-03-16 19:29:23 +0800
committerchai <chaifix@163.com>2019-03-16 19:29:23 +0800
commitd29f5f4aebd90b1e256967801b28a5990249b2e7 (patch)
treef4f1390b57a39e0493e0f74b40dd3996d88d04e5 /Source/3rdParty/Luax/luax_state.inl
parent1ab2501db0f9e14f138292880e37120e7a6184de (diff)
*luax
Diffstat (limited to 'Source/3rdParty/Luax/luax_state.inl')
-rw-r--r--Source/3rdParty/Luax/luax_state.inl8
1 files changed, 5 insertions, 3 deletions
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<T>::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<T>::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<typename T>