diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-02-04 15:47:59 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-02-04 15:47:59 -0200 |
| commit | 568794956025183fc9a9b79e0c818a885e3d0aeb (patch) | |
| tree | 02d1a74d7c9a16ca06e94ab4308694ad04f49012 /lapi.c | |
| parent | 19de5b22054f6da2c3e0eb3138cc7a1195aab4fd (diff) | |
| download | lua-568794956025183fc9a9b79e0c818a885e3d0aeb.tar.gz lua-568794956025183fc9a9b79e0c818a885e3d0aeb.tar.bz2 lua-568794956025183fc9a9b79e0c818a885e3d0aeb.zip | |
"lua_debug", "lua_callhook" and "lua_linehook" must be inside "lua_state".
Diffstat (limited to 'lapi.c')
| -rw-r--r-- | lapi.c | 14 |
1 files changed, 7 insertions, 7 deletions
| @@ -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 | ||
| 441 | lua_LHFunction lua_setlinehook (lua_LHFunction func) { | 441 | lua_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 | ||
| 447 | lua_CHFunction lua_setcallhook (lua_CHFunction func) { | 447 | lua_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 | ||
| 453 | int lua_setdebug (int debug) { | 453 | int 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 | ||
