diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-10-01 13:50:53 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-10-01 13:50:53 -0300 |
commit | a62d39aa1ce033922c088611f9443a0a271ae427 (patch) | |
tree | af9da51038f85438fdff04a3b9493a038f29c5bd | |
parent | 5d4bf35ec9f240fc82cd4e94a395c652b2ab004c (diff) | |
download | lua-a62d39aa1ce033922c088611f9443a0a271ae427.tar.gz lua-a62d39aa1ce033922c088611f9443a0a271ae427.tar.bz2 lua-a62d39aa1ce033922c088611f9443a0a271ae427.zip |
detail: `luaL_where' does not use the name information
-rw-r--r-- | lauxlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.c,v 1.101 2003/05/15 12:20:24 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.102 2003/05/16 18:59:08 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -74,7 +74,7 @@ static void tag_error (lua_State *L, int narg, int tag) { | |||
74 | LUALIB_API void luaL_where (lua_State *L, int level) { | 74 | LUALIB_API void luaL_where (lua_State *L, int level) { |
75 | lua_Debug ar; | 75 | lua_Debug ar; |
76 | if (lua_getstack(L, level, &ar)) { /* check function at level */ | 76 | if (lua_getstack(L, level, &ar)) { /* check function at level */ |
77 | lua_getinfo(L, "Snl", &ar); /* get info about it */ | 77 | lua_getinfo(L, "Sl", &ar); /* get info about it */ |
78 | if (ar.currentline > 0) { /* is there info? */ | 78 | if (ar.currentline > 0) { /* is there info? */ |
79 | lua_pushfstring(L, "%s:%d: ", ar.short_src, ar.currentline); | 79 | lua_pushfstring(L, "%s:%d: ", ar.short_src, ar.currentline); |
80 | return; | 80 | return; |