From ad2805aa839892589c13a615730da52f6e474709 Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 17 Mar 2019 10:49:50 +0800 Subject: *luax --- Source/3rdParty/Luax/luax_state.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Source/3rdParty/Luax/luax_state.cpp') diff --git a/Source/3rdParty/Luax/luax_state.cpp b/Source/3rdParty/Luax/luax_state.cpp index a60a021..0913ee3 100644 --- a/Source/3rdParty/Luax/luax_state.cpp +++ b/Source/3rdParty/Luax/luax_state.cpp @@ -2,6 +2,7 @@ #include "luax_enum.h" #include "luax_state.h" #include "luax_runtime.h" +#include "luax_class.hpp" namespace Luax { @@ -699,4 +700,11 @@ namespace Luax luaL_register(mState, libname, l); } + void LuaxState::RegisterPlainClassRegistry(cc8* name) + { + assert(lua_istable(mState, -1)); + lua_pushcfunction(mState, LuaxPlainClass::registry); + lua_setfield(mState, -2, name); + } + } \ No newline at end of file -- cgit v1.1-26-g67d0