mirror of
https://github.com/lua/lua
synced 2024-11-23 05:11:45 +03:00
33 lines
591 B
C
33 lines
591 B
C
/*
|
|
** $Id: fallback.h,v 1.7 1994/11/21 18:22:58 roberto Stab roberto $
|
|
*/
|
|
|
|
#ifndef fallback_h
|
|
#define fallback_h
|
|
|
|
#include "opcode.h"
|
|
|
|
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
|
|
#define FB_SETTABLE 6
|
|
#define FB_GC 7
|
|
#define FB_FUNCTION 8
|
|
|
|
void luaI_setfallback (void);
|
|
int luaI_lock (Object *object);
|
|
Object *luaI_getlocked (int ref);
|
|
void luaI_travlock (void (*fn)(Object *));
|
|
void luaI_travfallbacks (void (*fn)(Object *));
|
|
|
|
#endif
|
|
|