fallback.h 976 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. ** $Id: fallback.h,v 1.14 1997/02/26 17:38:41 roberto Unstable roberto $
  3. */
  4. #ifndef fallback_h
  5. #define fallback_h
  6. #include "lua.h"
  7. #include "opcode.h"
  8. #define IM_GETTABLE 0
  9. #define IM_ARITH 1
  10. #define IM_ORDER 2
  11. #define IM_CONCAT 3
  12. #define IM_SETTABLE 4
  13. #define IM_GC 5
  14. #define IM_FUNCTION 6
  15. #define IM_INDEX 7
  16. #define IM_N 8
  17. #define GIM_ERROR 0
  18. #define GIM_GETGLOBAL 1
  19. #define GIM_SETGLOBAL 2
  20. #define GIM_N 3
  21. void luaI_setfallback (void);
  22. int luaI_ref (Object *object, int lock);
  23. Object *luaI_getref (int ref);
  24. void luaI_travlock (int (*fn)(Object *));
  25. void luaI_invalidaterefs (void);
  26. char *luaI_travfallbacks (int (*fn)(Object *));
  27. void luaI_settag (int tag, Object *o);
  28. lua_Type luaI_typetag (int tag);
  29. Object *luaI_getim (int tag, int event);
  30. Object *luaI_getgim (int event);
  31. Object *luaI_getimbyObj (Object *o, int event);
  32. int luaI_tag (Object *o);
  33. void luaI_setintmethod (void);
  34. void luaI_setglobalmethod (void);
  35. void luaI_initfallbacks (void);
  36. #endif