From a30c66f0fc17bf733c2289a0d7a76930dac80f47 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 6 Mar 2015 16:49:50 -0300 Subject: macro 'luai_apicheck'/'api_check' back with a 'lua_State' parameter (some people use it) --- ldebug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldebug.c') diff --git a/ldebug.c b/ldebug.c index f6c25db3..b51ae8b7 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 2.110 2015/01/02 12:52:22 roberto Exp roberto $ +** $Id: ldebug.c,v 2.111 2015/02/13 16:01:17 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -295,7 +295,7 @@ LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) { if (*what == '>') { ci = NULL; func = L->top - 1; - api_check(ttisfunction(func), "function expected"); + api_check(L, ttisfunction(func), "function expected"); what++; /* skip the '>' */ L->top--; /* pop function */ } -- cgit v1.2.3-55-g6feb