From 75792c15480d3d99b2ba7e79e143e4b569b22611 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 13 Nov 2018 08:27:26 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9lua=20ref?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/luax.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lua/luax.h') diff --git a/src/lua/luax.h b/src/lua/luax.h index 89e456e..1c2081c 100644 --- a/src/lua/luax.h +++ b/src/lua/luax.h @@ -4,4 +4,8 @@ #include "LuaJIT/lua.hpp" #include "lua/libraries/luax/luax.h" +#define luax_newclass(l, f) \ +extern int f(lua_State*);\ +f(l) + #endif \ No newline at end of file -- cgit v1.1-26-g67d0