diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-04-02 20:04:12 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-04-02 20:04:12 -0300 |
commit | 075b7918c3dcc1e8b4d5e7f19ae213b081e01bf2 (patch) | |
tree | ae1dd456984f4e7128b2d4a2e2e43e4f23b99d01 /opcode.c | |
parent | 7c99149a76ce0c7469c9bafec5dfff529f88512c (diff) | |
download | lua-075b7918c3dcc1e8b4d5e7f19ae213b081e01bf2.tar.gz lua-075b7918c3dcc1e8b4d5e7f19ae213b081e01bf2.tar.bz2 lua-075b7918c3dcc1e8b4d5e7f19ae213b081e01bf2.zip |
new function "getintmethod"
Diffstat (limited to 'opcode.c')
-rw-r--r-- | opcode.c | 9 |
1 files changed, 8 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.91 1997/04/02 17:44:18 roberto Exp roberto $"; | 6 | char *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 | ||
659 | void lua_getintmethod (int tag, char *event) | ||
660 | { | ||
661 | lua_pushnumber(tag); | ||
662 | lua_pushstring(event); | ||
663 | do_unprotectedrun(luaI_getintmethod, 2, 1); | ||
664 | } | ||
665 | |||
659 | void lua_setintmethod (int tag, char *event, lua_CFunction method) | 666 | void lua_setintmethod (int tag, char *event, lua_CFunction method) |
660 | { | 667 | { |
661 | lua_pushnumber(tag); | 668 | lua_pushnumber(tag); |