mirror of
https://github.com/lua/lua
synced 2025-01-10 11:32:00 +03:00
detail ('luai_apicheck' should be used always through macro 'api_check')
This commit is contained in:
parent
c31f4946e9
commit
2e9b8476ca
4
ldebug.c
4
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
|
** Debug Interface
|
||||||
** See Copyright Notice in lua.h
|
** 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 == '>') {
|
if (*what == '>') {
|
||||||
ci = NULL;
|
ci = NULL;
|
||||||
func = L->top - 1;
|
func = L->top - 1;
|
||||||
luai_apicheck(L, ttisfunction(func));
|
api_check(L, ttisfunction(func), "function expected");
|
||||||
what++; /* skip the '>' */
|
what++; /* skip the '>' */
|
||||||
L->top--; /* pop function */
|
L->top--; /* pop function */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user