1994-11-07 18:20:56 +03:00
|
|
|
/*
|
1994-11-21 21:22:58 +03:00
|
|
|
** $Id: fallback.h,v 1.6 1994/11/21 13:30:15 roberto Exp roberto $
|
1994-11-07 18:20:56 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef fallback_h
|
|
|
|
#define fallback_h
|
|
|
|
|
1994-11-08 22:56:39 +03:00
|
|
|
#include "opcode.h"
|
|
|
|
|
1994-11-10 20:11:52 +03:00
|
|
|
extern struct FB {
|
|
|
|
char *kind;
|
|
|
|
Object function;
|
|
|
|
} 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 16:30:15 +03:00
|
|
|
#define FB_SETTABLE 6
|
|
|
|
#define FB_GC 7
|
1994-11-21 21:22:58 +03:00
|
|
|
#define FB_FUNCTION 8
|
1994-11-10 20:11:52 +03:00
|
|
|
|
|
|
|
void luaI_setfallback (void);
|
1994-11-18 22:46:21 +03:00
|
|
|
int luaI_lock (Object *object);
|
1994-11-08 22:56:39 +03:00
|
|
|
Object *luaI_getlocked (int ref);
|
|
|
|
void luaI_travlock (void (*fn)(Object *));
|
1994-11-07 18:20:56 +03:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|