lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 2e9b8476cacf008e7313788e55e0b055fa4dee79
parent c31f4946e91e237512bccd740cc9c5ffe02b2cb7
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Mon, 18 Apr 2011 12:02:13 -0300

detail ('luai_apicheck' should be used always through macro 'api_check')

Diffstat:
Mldebug.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ldebug.c b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 2.76 2011/01/26 16:30:02 roberto Exp roberto $ +** $Id: ldebug.c,v 2.77 2011/04/07 18:14:12 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -256,7 +256,7 @@ LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) { if (*what == '>') { ci = NULL; func = L->top - 1; - luai_apicheck(L, ttisfunction(func)); + api_check(L, ttisfunction(func), "function expected"); what++; /* skip the '>' */ L->top--; /* pop function */ }