diff options
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); |
