diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-03-06 16:49:50 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-03-06 16:49:50 -0300 |
| commit | a30c66f0fc17bf733c2289a0d7a76930dac80f47 (patch) | |
| tree | 96d7e5fff8245da7540d14818adc28f420036b26 /ldebug.c | |
| parent | bb4baa73ea85c0fd49ab2ab96f0f174cd131830a (diff) | |
| download | lua-a30c66f0fc17bf733c2289a0d7a76930dac80f47.tar.gz lua-a30c66f0fc17bf733c2289a0d7a76930dac80f47.tar.bz2 lua-a30c66f0fc17bf733c2289a0d7a76930dac80f47.zip | |
macro 'luai_apicheck'/'api_check' back with a 'lua_State' parameter
(some people use it)
Diffstat (limited to 'ldebug.c')
| -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.110 2015/01/02 12:52:22 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 2.111 2015/02/13 16:01:17 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 | */ |
| @@ -295,7 +295,7 @@ LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) { | |||
| 295 | if (*what == '>') { | 295 | if (*what == '>') { |
| 296 | ci = NULL; | 296 | ci = NULL; |
| 297 | func = L->top - 1; | 297 | func = L->top - 1; |
| 298 | api_check(ttisfunction(func), "function expected"); | 298 | api_check(L, ttisfunction(func), "function expected"); |
| 299 | what++; /* skip the '>' */ | 299 | what++; /* skip the '>' */ |
| 300 | L->top--; /* pop function */ | 300 | L->top--; /* pop function */ |
| 301 | } | 301 | } |
