summaryrefslogtreecommitdiff
path: root/Source/3rdParty/Luax/luax_state.inl
diff options
context:
space:
mode:
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>