diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-04-18 12:02:37 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-04-18 12:02:37 -0300 |
commit | 2e9b8476cacf008e7313788e55e0b055fa4dee79 (patch) | |
tree | 5492ae33d933cb006e59b0021d788fa6cff10821 | |
parent | c31f4946e91e237512bccd740cc9c5ffe02b2cb7 (diff) | |
download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | } |