1994-11-07 13:20:56 -02:00
|
|
|
/*
|
1996-04-25 11:10:00 -03:00
|
|
|
** $Id: fallback.h,v 1.12 1996/04/22 18:00:37 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[];
|
|
|
|
|
|
|
|
#define FB_ERROR 0
|
|
|
|
#define FB_INDEX 1
|
|
|
|
#define FB_GETTABLE 2
|
|
|
|
#define FB_ARITH 3
|
|
|
|
#define FB_ORDER 4
|
|
|
|
#define FB_CONCAT 5
|
1994-11-21 11:30:15 -02:00
|
|
|
#define FB_SETTABLE 6
|
|
|
|
#define FB_GC 7
|
1994-11-21 16:22:58 -02:00
|
|
|
#define FB_FUNCTION 8
|
1996-01-30 13:25:23 -02:00
|
|
|
#define FB_GETGLOBAL 9
|
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
|
|
|
|
|
|
|
#endif
|
|
|
|
|