mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
new function "getintmethod"
This commit is contained in:
parent
7c99149a76
commit
075b7918c3
6 changed files with 30 additions and 10 deletions
9
opcode.c
9
opcode.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue