1994-11-07 07:20:56 -08:00
|
|
|
/*
|
1996-04-25 07:10:00 -07:00
|
|
|
** $Id: fallback.h,v 1.12 1996/04/22 18:00:37 roberto Exp 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"
|
|
|
|
|
1994-11-10 09:11:52 -08:00
|
|
|
extern struct FB {
|
|
|
|
char *kind;
|
|
|
|
Object function;
|
1995-10-09 06:14:29 -07:00
|
|
|
int nParams;
|
|
|
|
int nResults;
|
1994-11-10 09:11:52 -08: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 05:30:15 -08:00
|
|
|
#define FB_SETTABLE 6
|
|
|
|
#define FB_GC 7
|
1994-11-21 10:22:58 -08:00
|
|
|
#define FB_FUNCTION 8
|
1996-01-30 07:25:23 -08:00
|
|
|
#define FB_GETGLOBAL 9
|
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
|
|
|
|
|
|
|
#endif
|
|
|
|
|