diff options
| author | chai <chaifix@163.com> | 2019-03-18 08:49:16 +0800 |
|---|---|---|
| committer | chai <chaifix@163.com> | 2019-03-18 08:49:16 +0800 |
| commit | 5e2a973516e0729b225da9de0b03015dc5854ac4 (patch) | |
| tree | 419e662de962cdc3cec646a814f443a9434b5db5 /Source/3rdParty/Luax/luax_state.cpp | |
| parent | 9c0c9c9284b4cea07656a5e91eaf90adb961a38e (diff) | |
*luax
Diffstat (limited to 'Source/3rdParty/Luax/luax_state.cpp')
| -rw-r--r-- | Source/3rdParty/Luax/luax_state.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/3rdParty/Luax/luax_state.cpp b/Source/3rdParty/Luax/luax_state.cpp index b27825e..9812c8d 100644 --- a/Source/3rdParty/Luax/luax_state.cpp +++ b/Source/3rdParty/Luax/luax_state.cpp @@ -707,18 +707,22 @@ namespace Luax luaL_register(mState, libname, l); } +#ifdef LUAX_ENABLE_PLAIN_CLASS void LuaxState::RegisterPlainClassRegistry(cc8* name) { assert(lua_istable(mState, -1)); lua_pushcfunction(mState, LuaxPlainClass::registry); lua_setfield(mState, -2, name); } +#endif +#ifdef LUAX_ENABLE_PLAIN_ENABLE void LuaxState::RegisterPlainEnumRegistry(cc8* name) { assert(lua_istable(mState, -1)); lua_pushcfunction(mState, LuaxPlainEnum::registry); lua_setfield(mState, -2, name); } +#endif }
\ No newline at end of file |
