diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2007-06-22 12:39:34 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2007-06-22 12:39:34 -0300 |
commit | ffc5f78229be51a31a8a75c09d5f8d35fb7654bb (patch) | |
tree | 1ff09d3f08cec6eed8cfd8d142145b6a14a620e1 /lauxlib.c | |
parent | 3f78748ef357cbb128c96d7a07866f0953be1792 (diff) | |
download | lua-ffc5f78229be51a31a8a75c09d5f8d35fb7654bb.tar.gz lua-ffc5f78229be51a31a8a75c09d5f8d35fb7654bb.tar.bz2 lua-ffc5f78229be51a31a8a75c09d5f8d35fb7654bb.zip |
detail
Diffstat (limited to 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.c,v 1.169 2007/06/21 14:09:59 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.170 2007/06/22 15:33:54 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 | */ |
@@ -114,8 +114,8 @@ static int countlevels (lua_State *L) { | |||
114 | } | 114 | } |
115 | 115 | ||
116 | 116 | ||
117 | LUALIB_API const char *luaL_traceback (lua_State *L, lua_State *L1, | 117 | LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, |
118 | const char *msg, int level) { | 118 | const char *msg, int level) { |
119 | lua_Debug ar; | 119 | lua_Debug ar; |
120 | int top = lua_gettop(L); | 120 | int top = lua_gettop(L); |
121 | int numlevels = countlevels(L1); | 121 | int numlevels = countlevels(L1); |
@@ -138,7 +138,6 @@ LUALIB_API const char *luaL_traceback (lua_State *L, lua_State *L1, | |||
138 | } | 138 | } |
139 | } | 139 | } |
140 | lua_concat(L, lua_gettop(L) - top); | 140 | lua_concat(L, lua_gettop(L) - top); |
141 | return lua_tostring(L, -1); | ||
142 | } | 141 | } |
143 | 142 | ||
144 | /* }====================================================== */ | 143 | /* }====================================================== */ |