new interface to "lua_seterrormethod" and "lua_settagmethod", to

allow the use of Lua functions too.
This commit is contained in:
Roberto Ierusalimschy
1997-06-19 15:03:04 -03:00
parent a38f093f05
commit 88f020b626
5 changed files with 25 additions and 22 deletions

6
lua.h
View File

@@ -2,7 +2,7 @@
** LUA - An Extensible Extension Language
** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil
** e-mail: lua@tecgraf.puc-rio.br
** $Id: lua.h,v 4.8 1997/06/16 19:48:18 roberto Exp roberto $
** $Id: lua.h,v 4.9 1997/06/18 21:20:45 roberto Exp roberto $
*/
@@ -21,9 +21,9 @@
typedef void (*lua_CFunction) (void);
typedef unsigned int lua_Object;
lua_Object lua_settagmethod (int tag, char *event, lua_CFunction method);
lua_Object lua_settagmethod (int tag, char *event); /* In: new method */
lua_Object lua_gettagmethod (int tag, char *event);
lua_Object lua_seterrormethod (lua_CFunction method);
lua_Object lua_seterrormethod (void); /* In: new method */
int lua_newtag (void);
void lua_settag (int tag); /* In: object */