diff options
Diffstat (limited to '')
| -rw-r--r-- | ldblib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ldblib.c,v 1.38 2001/08/31 19:46:07 roberto Exp $ | 2 | ** $Id: ldblib.c,v 1.39 2001/10/17 21:12:57 roberto Exp $ |
| 3 | ** Interface from Lua to its debug API | 3 | ** Interface from Lua to its debug API |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -104,7 +104,7 @@ static int setlocal (lua_State *L) { | |||
| 104 | lua_Debug ar; | 104 | lua_Debug ar; |
| 105 | if (!lua_getstack(L, luaL_check_int(L, 1), &ar)) /* level out of range? */ | 105 | if (!lua_getstack(L, luaL_check_int(L, 1), &ar)) /* level out of range? */ |
| 106 | luaL_argerror(L, 1, l_s("level out of range")); | 106 | luaL_argerror(L, 1, l_s("level out of range")); |
| 107 | luaL_checkany(L, 3); | 107 | luaL_check_any(L, 3); |
| 108 | lua_pushstring(L, lua_setlocal(L, &ar, luaL_check_int(L, 2))); | 108 | lua_pushstring(L, lua_setlocal(L, &ar, luaL_check_int(L, 2))); |
| 109 | return 1; | 109 | return 1; |
| 110 | } | 110 | } |
