aboutsummaryrefslogtreecommitdiff
path: root/opcode.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-04-02 20:04:12 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-04-02 20:04:12 -0300
commit075b7918c3dcc1e8b4d5e7f19ae213b081e01bf2 (patch)
treeae1dd456984f4e7128b2d4a2e2e43e4f23b99d01 /opcode.c
parent7c99149a76ce0c7469c9bafec5dfff529f88512c (diff)
downloadlua-075b7918c3dcc1e8b4d5e7f19ae213b081e01bf2.tar.gz
lua-075b7918c3dcc1e8b4d5e7f19ae213b081e01bf2.tar.bz2
lua-075b7918c3dcc1e8b4d5e7f19ae213b081e01bf2.zip
new function "getintmethod"
Diffstat (limited to 'opcode.c')
-rw-r--r--opcode.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/opcode.c b/opcode.c
index 5bbfe609..e36ba184 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.91 1997/04/02 17:44:18 roberto Exp roberto $"; 6char *rcs_opcode="$Id: opcode.c,v 3.92 1997/04/02 22:52:42 roberto Exp roberto $";
7 7
8#include <setjmp.h> 8#include <setjmp.h>
9#include <stdio.h> 9#include <stdio.h>
@@ -656,6 +656,13 @@ lua_Object lua_setfallback (char *name, lua_CFunction fallback)
656 return (Ref(top-1)); 656 return (Ref(top-1));
657} 657}
658 658
659void lua_getintmethod (int tag, char *event)
660{
661 lua_pushnumber(tag);
662 lua_pushstring(event);
663 do_unprotectedrun(luaI_getintmethod, 2, 1);
664}
665
659void lua_setintmethod (int tag, char *event, lua_CFunction method) 666void lua_setintmethod (int tag, char *event, lua_CFunction method)
660{ 667{
661 lua_pushnumber(tag); 668 lua_pushnumber(tag);