aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-04-18 12:02:37 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-04-18 12:02:37 -0300
commit2e9b8476cacf008e7313788e55e0b055fa4dee79 (patch)
tree5492ae33d933cb006e59b0021d788fa6cff10821
parentc31f4946e91e237512bccd740cc9c5ffe02b2cb7 (diff)
downloadlua-2e9b8476cacf008e7313788e55e0b055fa4dee79.tar.gz
lua-2e9b8476cacf008e7313788e55e0b055fa4dee79.tar.bz2
lua-2e9b8476cacf008e7313788e55e0b055fa4dee79.zip
detail ('luai_apicheck' should be used always through macro 'api_check')
-rw-r--r--ldebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldebug.c b/ldebug.c
index dd086452..73e34690 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 2.76 2011/01/26 16:30:02 roberto Exp roberto $ 2** $Id: ldebug.c,v 2.77 2011/04/07 18:14:12 roberto Exp roberto $
3** Debug Interface 3** Debug Interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -256,7 +256,7 @@ LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) {
256 if (*what == '>') { 256 if (*what == '>') {
257 ci = NULL; 257 ci = NULL;
258 func = L->top - 1; 258 func = L->top - 1;
259 luai_apicheck(L, ttisfunction(func)); 259 api_check(L, ttisfunction(func), "function expected");
260 what++; /* skip the '>' */ 260 what++; /* skip the '>' */
261 L->top--; /* pop function */ 261 L->top--; /* pop function */
262 } 262 }