From 3b44821334a1aa387c13eaf3cd23a2344091cbc7 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 2 Jun 2011 16:31:40 -0300 Subject: stricter control (using tag variants) over closure kinds (Lua x C) --- ldebug.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ldebug.h') diff --git a/ldebug.h b/ldebug.h index c37c9403..5f865ee8 100644 --- a/ldebug.h +++ b/ldebug.h @@ -1,5 +1,5 @@ /* -** $Id: ldebug.h,v 2.4 2009/04/30 17:42:21 roberto Exp roberto $ +** $Id: ldebug.h,v 2.5 2009/06/10 16:57:53 roberto Exp roberto $ ** Auxiliary functions from Debug Interface module ** See Copyright Notice in lua.h */ @@ -17,6 +17,9 @@ #define resethookcount(L) (L->hookcount = L->basehookcount) +/* Active Lua function (given call info) */ +#define ci_func(ci) (clLvalue((ci)->func)) + LUAI_FUNC void luaG_typeerror (lua_State *L, const TValue *o, const char *opname); -- cgit v1.2.3-55-g6feb