From 7a20483f06624e82feb129c9e4c8fa13881a6a9f Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 22 Nov 2018 12:23:12 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9lua=20bind?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/common/je_lua_proxy.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/lua/common/je_lua_proxy.h') diff --git a/src/lua/common/je_lua_proxy.h b/src/lua/common/je_lua_proxy.h index 17e8da7..d6a6a0a 100644 --- a/src/lua/common/je_lua_proxy.h +++ b/src/lua/common/je_lua_proxy.h @@ -1,9 +1,6 @@ #ifndef __JIN_COMMON_PROXY_H #define __JIN_COMMON_PROXY_H -#include "LuaJIT/lua.hpp" -#include "libraries/luax/luax.h" - #include "je_lua_shared.hpp" namespace JinEngine @@ -57,14 +54,6 @@ namespace JinEngine }; - inline Proxy* luax_newinstance(lua_State* L, const char* type, SharedBase* shared = nullptr) - { - Proxy* proxy = static_cast(luax_newinstance(L, type, sizeof(Proxy))); - if(shared) - proxy->bind(shared); - return proxy; - } - } // namespace Lua } // namespace JinEngine -- cgit v1.1-26-g67d0