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 | |
parent | 3f78748ef357cbb128c96d7a07866f0953be1792 (diff) | |
download | lua-ffc5f78229be51a31a8a75c09d5f8d35fb7654bb.tar.gz lua-ffc5f78229be51a31a8a75c09d5f8d35fb7654bb.tar.bz2 lua-ffc5f78229be51a31a8a75c09d5f8d35fb7654bb.zip |
detail
-rw-r--r-- | lauxlib.c | 7 | ||||
-rw-r--r-- | lauxlib.h | 6 |
2 files changed, 6 insertions, 7 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 | /* }====================================================== */ |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.h,v 1.91 2007/06/21 13:48:04 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.92 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 | */ |
@@ -78,8 +78,8 @@ LUALIB_API const char *(luaL_gsub) (lua_State *L, const char *s, const char *p, | |||
78 | LUALIB_API const char *(luaL_findtable) (lua_State *L, int idx, | 78 | LUALIB_API const char *(luaL_findtable) (lua_State *L, int idx, |
79 | const char *fname, int szhint); | 79 | const char *fname, int szhint); |
80 | 80 | ||
81 | LUALIB_API const char *luaL_traceback (lua_State *L, lua_State *L1, | 81 | LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, |
82 | const char *msg, int level); | 82 | const char *msg, int level); |
83 | 83 | ||
84 | 84 | ||
85 | 85 | ||