1994-11-07 13:20:56 -02:00
|
|
|
/*
|
1997-02-26 14:38:41 -03:00
|
|
|
** $Id: fallback.h,v 1.13 1996/04/25 14:10:00 roberto Exp roberto $
|
1994-11-07 13:20:56 -02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef fallback_h
|
|
|
|
#define fallback_h
|
|
|
|
|
1996-04-22 15:00:37 -03:00
|
|
|
#include "lua.h"
|
1994-11-08 17:56:39 -02:00
|
|
|
#include "opcode.h"
|
|
|
|
|
1994-11-10 15:11:52 -02:00
|
|
|
extern struct FB {
|
|
|
|
char *kind;
|
|
|
|
Object function;
|
1995-10-09 10:14:29 -03:00
|
|
|
int nParams;
|
|
|
|
int nResults;
|
1994-11-10 15:11:52 -02:00
|
|
|
} luaI_fallBacks[];
|
|
|
|
|
1997-02-26 14:38:41 -03:00
|
|
|
#define FB_GETTABLE 0
|
|
|
|
#define FB_ARITH 1
|
|
|
|
#define FB_ORDER 2
|
|
|
|
#define FB_CONCAT 3
|
|
|
|
#define FB_SETTABLE 4
|
|
|
|
#define FB_GC 5
|
|
|
|
#define FB_FUNCTION 6
|
|
|
|
#define FB_GETGLOBAL 7
|
|
|
|
#define FB_INDEX 8
|
|
|
|
#define FB_ERROR 9
|
|
|
|
#define FB_N 10
|
1994-11-10 15:11:52 -02:00
|
|
|
|
|
|
|
void luaI_setfallback (void);
|
1996-04-25 11:10:00 -03:00
|
|
|
int luaI_ref (Object *object, int lock);
|
|
|
|
Object *luaI_getref (int ref);
|
1995-10-17 09:52:38 -02:00
|
|
|
void luaI_travlock (int (*fn)(Object *));
|
1996-04-22 15:00:37 -03:00
|
|
|
void luaI_invalidaterefs (void);
|
1995-10-17 09:52:38 -02:00
|
|
|
char *luaI_travfallbacks (int (*fn)(Object *));
|
1994-11-07 13:20:56 -02:00
|
|
|
|
1997-02-26 14:38:41 -03:00
|
|
|
void luaI_settag (int tag, Object *o);
|
|
|
|
Object *luaI_getim (int tag, int event);
|
|
|
|
int luaI_tag (Object *o);
|
|
|
|
void luaI_setintmethod (void);
|
|
|
|
|
1994-11-07 13:20:56 -02:00
|
|
|
#endif
|
|
|
|
|