From 37f1d11f9e1f7b9f336b509f3afb6dd61bb5ffee Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 6 Dec 2018 20:04:05 +0800 Subject: *misc --- src/lua/common/je_lua.cpp | 5 +++++ src/lua/common/je_lua.h | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'src/lua/common') diff --git a/src/lua/common/je_lua.cpp b/src/lua/common/je_lua.cpp index 0b6c498..73f671c 100644 --- a/src/lua/common/je_lua.cpp +++ b/src/lua/common/je_lua.cpp @@ -33,6 +33,11 @@ namespace JinEngine return obj; } + LuaObject* luax_checkobject(lua_State* L, int idx, const char* type) + { + return (LuaObject*)luax_checktype(L, idx, type); + } + LuaObject* luax_copyinstance(lua_State* to, LuaObject* src) { if (to == src->state) diff --git a/src/lua/common/je_lua.h b/src/lua/common/je_lua.h index 24f89fe..b390e4c 100644 --- a/src/lua/common/je_lua.h +++ b/src/lua/common/je_lua.h @@ -27,6 +27,11 @@ namespace JinEngine /// LuaObject* luax_copyinstance(lua_State* to, LuaObject* src); + /// + /// + /// + LuaObject* luax_checkobject(lua_State* L, int idx, const char* type); + /// /// Access lua object by object pointer. /// -- cgit v1.1-26-g67d0