diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-08 10:21:35 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-08 10:21:35 -0300 |
commit | cfe6ca819b7804d995dcf5ede53e2bd257a95446 (patch) | |
tree | cea3bc2b8ab49eb12c2bd15d4c7334dc9ecf536b | |
parent | fe5c37ae95ac64762f307d983000246e3429017f (diff) | |
download | lua-cfe6ca819b7804d995dcf5ede53e2bd257a95446.tar.gz lua-cfe6ca819b7804d995dcf5ede53e2bd257a95446.tar.bz2 lua-cfe6ca819b7804d995dcf5ede53e2bd257a95446.zip |
default for `getstack' is to get everything
-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.12 2000/03/30 17:19:48 roberto Exp roberto $ | 2 | ** $Id: ldblib.c,v 1.13 2000/04/14 17:44:20 roberto Exp roberto $ |
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 | */ |
@@ -46,7 +46,7 @@ static void getstack (lua_State *L) { | |||
46 | if (!lua_getstack(L, luaL_check_int(L, 1), &ar)) /* level out of range? */ | 46 | if (!lua_getstack(L, luaL_check_int(L, 1), &ar)) /* level out of range? */ |
47 | return; | 47 | return; |
48 | else { | 48 | else { |
49 | const char *options = luaL_check_string(L, 2); | 49 | const char *options = luaL_opt_string(L, 2, "flnSu"); |
50 | lua_Object res = lua_createtable(L); | 50 | lua_Object res = lua_createtable(L); |
51 | if (!lua_getinfo(L, options, &ar)) | 51 | if (!lua_getinfo(L, options, &ar)) |
52 | luaL_argerror(L, 2, "invalid option"); | 52 | luaL_argerror(L, 2, "invalid option"); |