aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lapi.c b/lapi.c
index 6a553422..60eefc80 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 1.32 1999/01/26 15:31:17 roberto Exp roberto $ 2** $Id: lapi.c,v 1.33 1999/02/03 16:42:42 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -439,20 +439,20 @@ lua_State *lua_setstate (lua_State *st) {
439} 439}
440 440
441lua_LHFunction lua_setlinehook (lua_LHFunction func) { 441lua_LHFunction lua_setlinehook (lua_LHFunction func) {
442 lua_LHFunction old = lua_linehook; 442 lua_LHFunction old = L->linehook;
443 lua_linehook = func; 443 L->linehook = func;
444 return old; 444 return old;
445} 445}
446 446
447lua_CHFunction lua_setcallhook (lua_CHFunction func) { 447lua_CHFunction lua_setcallhook (lua_CHFunction func) {
448 lua_CHFunction old = lua_callhook; 448 lua_CHFunction old = L->callhook;
449 lua_callhook = func; 449 L->callhook = func;
450 return old; 450 return old;
451} 451}
452 452
453int lua_setdebug (int debug) { 453int lua_setdebug (int debug) {
454 int old = lua_debug; 454 int old = L->debug;
455 lua_debug = debug; 455 L->debug = debug;
456 return old; 456 return old;
457} 457}
458 458