diff options
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 | /* }====================================================== */ |