aboutsummaryrefslogtreecommitdiff
path: root/opcode.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-11-17 14:41:42 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-11-17 14:41:42 -0200
commit5406d391cd8c51d56b92e5c390afd60f4c006922 (patch)
treede38cf1837a5313f412f82b2e5561c757a1d5946 /opcode.c
parentb234da1cc2053b8919a9b27af67291e48fdf9703 (diff)
downloadlua-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.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/opcode.c b/opcode.c
index 1451894e..11816826 100644
--- a/opcode.c
+++ b/opcode.c
@@ -3,7 +3,7 @@
3** TecCGraf - PUC-Rio 3** TecCGraf - PUC-Rio
4*/ 4*/
5 5
6char *rcs_opcode="$Id: opcode.c,v 3.13 1994/11/16 17:38:08 roberto Exp $"; 6char *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*/
442int lua_beginblock (void)
443{
444 return CBase;
445}
446
447/*
448** API: ends a block
449*/
450void 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*/