diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-17 14:41:42 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-17 14:41:42 -0200 |
commit | 5406d391cd8c51d56b92e5c390afd60f4c006922 (patch) | |
tree | de38cf1837a5313f412f82b2e5561c757a1d5946 /opcode.c | |
parent | b234da1cc2053b8919a9b27af67291e48fdf9703 (diff) | |
download | lua-5406d391cd8c51d56b92e5c390afd60f4c006922.tar.gz lua-5406d391cd8c51d56b92e5c390afd60f4c006922.tar.bz2 lua-5406d391cd8c51d56b92e5c390afd60f4c006922.zip |
new API functions startblock and endblock
Diffstat (limited to 'opcode.c')
-rw-r--r-- | opcode.c | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -3,7 +3,7 @@ | |||
3 | ** TecCGraf - PUC-Rio | 3 | ** TecCGraf - PUC-Rio |
4 | */ | 4 | */ |
5 | 5 | ||
6 | char *rcs_opcode="$Id: opcode.c,v 3.13 1994/11/16 17:38:08 roberto Exp $"; | 6 | char *rcs_opcode="$Id: opcode.c,v 3.14 1994/11/17 13:58:57 roberto Exp roberto $"; |
7 | 7 | ||
8 | #include <setjmp.h> | 8 | #include <setjmp.h> |
9 | #include <stdio.h> | 9 | #include <stdio.h> |
@@ -436,6 +436,23 @@ lua_Object lua_getsubscript (void) | |||
436 | return 0; | 436 | return 0; |
437 | } | 437 | } |
438 | 438 | ||
439 | /* | ||
440 | ** API: starts a new block | ||
441 | */ | ||
442 | int lua_beginblock (void) | ||
443 | { | ||
444 | return CBase; | ||
445 | } | ||
446 | |||
447 | /* | ||
448 | ** API: ends a block | ||
449 | */ | ||
450 | void lua_endblock (int block) | ||
451 | { | ||
452 | CBase = block; | ||
453 | adjustC(0); | ||
454 | } | ||
455 | |||
439 | /* | 456 | /* |
440 | ** API: receives on the stack the table, the index, and the new value. | 457 | ** API: receives on the stack the table, the index, and the new value. |
441 | */ | 458 | */ |