diff options
| -rw-r--r-- | ldebug.c | 5 | ||||
| -rw-r--r-- | lua.h | 4 |
2 files changed, 4 insertions, 5 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ldebug.c,v 2.95 2013/05/06 17:21:59 roberto Exp $ | 2 | ** $Id: ldebug.c,v 2.96 2013/07/10 20:32:36 roberto Exp roberto $ |
| 3 | ** Debug Interface | 3 | ** Debug Interface |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -50,7 +50,7 @@ static int currentline (CallInfo *ci) { | |||
| 50 | /* | 50 | /* |
| 51 | ** this function can be called asynchronous (e.g. during a signal) | 51 | ** this function can be called asynchronous (e.g. during a signal) |
| 52 | */ | 52 | */ |
| 53 | LUA_API int lua_sethook (lua_State *L, lua_Hook func, int mask, int count) { | 53 | LUA_API void lua_sethook (lua_State *L, lua_Hook func, int mask, int count) { |
| 54 | if (func == NULL || mask == 0) { /* turn off hooks? */ | 54 | if (func == NULL || mask == 0) { /* turn off hooks? */ |
| 55 | mask = 0; | 55 | mask = 0; |
| 56 | func = NULL; | 56 | func = NULL; |
| @@ -61,7 +61,6 @@ LUA_API int lua_sethook (lua_State *L, lua_Hook func, int mask, int count) { | |||
| 61 | L->basehookcount = count; | 61 | L->basehookcount = count; |
| 62 | resethookcount(L); | 62 | resethookcount(L); |
| 63 | L->hookmask = cast_byte(mask); | 63 | L->hookmask = cast_byte(mask); |
| 64 | return 1; | ||
| 65 | } | 64 | } |
| 66 | 65 | ||
| 67 | 66 | ||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lua.h,v 1.293 2013/08/05 16:58:28 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.294 2013/09/13 16:21:52 roberto Exp roberto $ |
| 3 | ** Lua - A Scripting Language | 3 | ** Lua - A Scripting Language |
| 4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) | 4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) |
| 5 | ** See Copyright Notice at the end of this file | 5 | ** See Copyright Notice at the end of this file |
| @@ -392,7 +392,7 @@ LUA_API void *(lua_upvalueid) (lua_State *L, int fidx, int n); | |||
| 392 | LUA_API void (lua_upvaluejoin) (lua_State *L, int fidx1, int n1, | 392 | LUA_API void (lua_upvaluejoin) (lua_State *L, int fidx1, int n1, |
| 393 | int fidx2, int n2); | 393 | int fidx2, int n2); |
| 394 | 394 | ||
| 395 | LUA_API int (lua_sethook) (lua_State *L, lua_Hook func, int mask, int count); | 395 | LUA_API void (lua_sethook) (lua_State *L, lua_Hook func, int mask, int count); |
| 396 | LUA_API lua_Hook (lua_gethook) (lua_State *L); | 396 | LUA_API lua_Hook (lua_gethook) (lua_State *L); |
| 397 | LUA_API int (lua_gethookmask) (lua_State *L); | 397 | LUA_API int (lua_gethookmask) (lua_State *L); |
| 398 | LUA_API int (lua_gethookcount) (lua_State *L); | 398 | LUA_API int (lua_gethookcount) (lua_State *L); |
