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-github-5406d391cd8c51d56b92e5c390afd60f4c006922.tar.gz | |
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 @@ ** TecCGraf - PUC-Rio */ -char *rcs_opcode="$Id: opcode.c,v 3.13 1994/11/16 17:38:08 roberto Exp $"; +char *rcs_opcode="$Id: opcode.c,v 3.14 1994/11/17 13:58:57 roberto Exp roberto $"; #include <setjmp.h> #include <stdio.h> @@ -436,6 +436,23 @@ lua_Object lua_getsubscript (void) return 0; } +/* +** API: starts a new block +*/ +int lua_beginblock (void) +{ + return CBase; +} + +/* +** API: ends a block +*/ +void lua_endblock (int block) +{ + CBase = block; + adjustC(0); +} + /* ** API: receives on the stack the table, the index, and the new value. */ |
