aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2007-06-22 12:39:34 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2007-06-22 12:39:34 -0300
commitffc5f78229be51a31a8a75c09d5f8d35fb7654bb (patch)
tree1ff09d3f08cec6eed8cfd8d142145b6a14a620e1
parent3f78748ef357cbb128c96d7a07866f0953be1792 (diff)
downloadlua-ffc5f78229be51a31a8a75c09d5f8d35fb7654bb.tar.gz
lua-ffc5f78229be51a31a8a75c09d5f8d35fb7654bb.tar.bz2
lua-ffc5f78229be51a31a8a75c09d5f8d35fb7654bb.zip
detail
-rw-r--r--lauxlib.c7
-rw-r--r--lauxlib.h6
2 files changed, 6 insertions, 7 deletions
diff --git a/lauxlib.c b/lauxlib.c
index 53d0ae5d..27adcb17 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -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
117LUALIB_API const char *luaL_traceback (lua_State *L, lua_State *L1, 117LUALIB_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/* }====================================================== */
diff --git a/lauxlib.h b/lauxlib.h
index ccc3e2c5..e0850c60 100644
--- a/lauxlib.h
+++ b/lauxlib.h
@@ -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,
78LUALIB_API const char *(luaL_findtable) (lua_State *L, int idx, 78LUALIB_API const char *(luaL_findtable) (lua_State *L, int idx,
79 const char *fname, int szhint); 79 const char *fname, int szhint);
80 80
81LUALIB_API const char *luaL_traceback (lua_State *L, lua_State *L1, 81LUALIB_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