fallback.h 644 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. ** $Id: fallback.h,v 1.10 1995/10/17 11:52:38 roberto Exp roberto $
  3. */
  4. #ifndef fallback_h
  5. #define fallback_h
  6. #include "opcode.h"
  7. extern struct FB {
  8. char *kind;
  9. Object function;
  10. int nParams;
  11. int nResults;
  12. } luaI_fallBacks[];
  13. #define FB_ERROR 0
  14. #define FB_INDEX 1
  15. #define FB_GETTABLE 2
  16. #define FB_ARITH 3
  17. #define FB_ORDER 4
  18. #define FB_CONCAT 5
  19. #define FB_SETTABLE 6
  20. #define FB_GC 7
  21. #define FB_FUNCTION 8
  22. #define FB_GETGLOBAL 9
  23. void luaI_setfallback (void);
  24. int luaI_lock (Object *object);
  25. Object *luaI_getlocked (int ref);
  26. void luaI_travlock (int (*fn)(Object *));
  27. char *luaI_travfallbacks (int (*fn)(Object *));
  28. #endif