1994-11-07 07:20:56 -08:00
|
|
|
/*
|
1997-03-19 11:41:10 -08:00
|
|
|
** $Id: fallback.h,v 1.14 1997/02/26 17:38:41 roberto Unstable roberto $
|
1994-11-07 07:20:56 -08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef fallback_h
|
|
|
|
#define fallback_h
|
|
|
|
|
1996-04-22 11:00:37 -07:00
|
|
|
#include "lua.h"
|
1994-11-08 11:56:39 -08:00
|
|
|
#include "opcode.h"
|
|
|
|
|
1997-03-19 11:41:10 -08:00
|
|
|
#define IM_GETTABLE 0
|
|
|
|
#define IM_ARITH 1
|
|
|
|
#define IM_ORDER 2
|
|
|
|
#define IM_CONCAT 3
|
|
|
|
#define IM_SETTABLE 4
|
|
|
|
#define IM_GC 5
|
|
|
|
#define IM_FUNCTION 6
|
|
|
|
#define IM_INDEX 7
|
|
|
|
#define IM_N 8
|
1994-11-10 09:11:52 -08:00
|
|
|
|
1997-03-19 11:41:10 -08:00
|
|
|
#define GIM_ERROR 0
|
|
|
|
#define GIM_GETGLOBAL 1
|
|
|
|
#define GIM_SETGLOBAL 2
|
|
|
|
#define GIM_N 3
|
1994-11-10 09:11:52 -08:00
|
|
|
|
|
|
|
void luaI_setfallback (void);
|
1996-04-25 07:10:00 -07:00
|
|
|
int luaI_ref (Object *object, int lock);
|
|
|
|
Object *luaI_getref (int ref);
|
1995-10-17 04:52:38 -07:00
|
|
|
void luaI_travlock (int (*fn)(Object *));
|
1996-04-22 11:00:37 -07:00
|
|
|
void luaI_invalidaterefs (void);
|
1995-10-17 04:52:38 -07:00
|
|
|
char *luaI_travfallbacks (int (*fn)(Object *));
|
1994-11-07 07:20:56 -08:00
|
|
|
|
1997-02-26 09:38:41 -08:00
|
|
|
void luaI_settag (int tag, Object *o);
|
1997-03-19 11:41:10 -08:00
|
|
|
lua_Type luaI_typetag (int tag);
|
1997-02-26 09:38:41 -08:00
|
|
|
Object *luaI_getim (int tag, int event);
|
1997-03-19 11:41:10 -08:00
|
|
|
Object *luaI_getgim (int event);
|
|
|
|
Object *luaI_getimbyObj (Object *o, int event);
|
1997-02-26 09:38:41 -08:00
|
|
|
int luaI_tag (Object *o);
|
|
|
|
void luaI_setintmethod (void);
|
1997-03-19 11:41:10 -08:00
|
|
|
void luaI_setglobalmethod (void);
|
|
|
|
void luaI_initfallbacks (void);
|
1997-02-26 09:38:41 -08:00
|
|
|
|
1994-11-07 07:20:56 -08:00
|
|
|
#endif
|
|
|
|
|