lvm.h 728 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. ** $Id: lvm.h,v 1.3 1997/10/16 10:59:34 roberto Exp roberto $
  3. ** Lua virtual machine
  4. ** See Copyright Notice in lua.h
  5. */
  6. #ifndef lvm_h
  7. #define lvm_h
  8. #include "ldo.h"
  9. #include "lobject.h"
  10. #define tonumber(o) ((ttype(o) != LUA_T_NUMBER) && (luaV_tonumber(o) != 0))
  11. #define tostring(o) ((ttype(o) != LUA_T_STRING) && (luaV_tostring(o) != 0))
  12. void luaV_pack (StkId firstel, int nvararg, TObject *tab);
  13. int luaV_tonumber (TObject *obj);
  14. int luaV_tostring (TObject *obj);
  15. void luaV_gettable (void);
  16. void luaV_settable (TObject *t, int mode);
  17. void luaV_getglobal (TaggedString *ts);
  18. void luaV_setglobal (TaggedString *ts);
  19. StkId luaV_execute (Closure *cl, TProtoFunc *tf, StkId base);
  20. void luaV_closure (int nelems);
  21. #endif