new function "getintmethod"

This commit is contained in:
Roberto Ierusalimschy
1997-04-02 20:04:12 -03:00
parent 7c99149a76
commit 075b7918c3
6 changed files with 30 additions and 10 deletions

View File

@@ -3,7 +3,7 @@
** TecCGraf - PUC-Rio
*/
char *rcs_opcode="$Id: opcode.c,v 3.91 1997/04/02 17:44:18 roberto Exp roberto $";
char *rcs_opcode="$Id: opcode.c,v 3.92 1997/04/02 22:52:42 roberto Exp roberto $";
#include <setjmp.h>
#include <stdio.h>
@@ -656,6 +656,13 @@ lua_Object lua_setfallback (char *name, lua_CFunction fallback)
return (Ref(top-1));
}
void lua_getintmethod (int tag, char *event)
{
lua_pushnumber(tag);
lua_pushstring(event);
do_unprotectedrun(luaI_getintmethod, 2, 1);
}
void lua_setintmethod (int tag, char *event, lua_CFunction method)
{
lua_pushnumber(tag);