summaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-12-09 12:21:10 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-12-09 12:21:10 -0200
commit16493b777f1412beffc5b6640f27ea6c13bcb7d7 (patch)
treeae586f41e228ac837dd9a0912a8b6a43410002ca /ldebug.c
parentcac1ebd1e06f5eb1e42141f006d360ae91f1f0f3 (diff)
downloadlua-16493b777f1412beffc5b6640f27ea6c13bcb7d7.tar.gz
lua-16493b777f1412beffc5b6640f27ea6c13bcb7d7.tar.bz2
lua-16493b777f1412beffc5b6640f27ea6c13bcb7d7.zip
'lua_sethook' returns void
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ldebug.c b/ldebug.c
index b2c5e916..dda88a20 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -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*/
53LUA_API int lua_sethook (lua_State *L, lua_Hook func, int mask, int count) { 53LUA_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