diff options
| -rw-r--r-- | ldo.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ldo.c,v 1.31 1999/02/04 17:47:59 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.32 1999/02/12 19:23:02 roberto Exp roberto $ |
| 3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -329,6 +329,7 @@ static int protectedparser (ZIO *z, int bin) { | |||
| 329 | 329 | ||
| 330 | static int do_main (ZIO *z, int bin) { | 330 | static int do_main (ZIO *z, int bin) { |
| 331 | int status; | 331 | int status; |
| 332 | int debug = L->debug; /* save debug status */ | ||
| 332 | do { | 333 | do { |
| 333 | long old_blocks = (luaC_checkGC(), L->nblocks); | 334 | long old_blocks = (luaC_checkGC(), L->nblocks); |
| 334 | status = protectedparser(z, bin); | 335 | status = protectedparser(z, bin); |
| @@ -341,6 +342,7 @@ static int do_main (ZIO *z, int bin) { | |||
| 341 | L->GCthreshold -= newelems2; | 342 | L->GCthreshold -= newelems2; |
| 342 | } | 343 | } |
| 343 | } while (bin && status == 0); | 344 | } while (bin && status == 0); |
| 345 | L->debug = debug; /* restore debug status */ | ||
| 344 | return status; | 346 | return status; |
| 345 | } | 347 | } |
| 346 | 348 | ||
