lvm.h 924 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. ** $Id: lvm.h,v 1.7 1998/12/30 17:26:49 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. #include "ltm.h"
  11. #define tonumber(o) ((ttype(o) != LUA_T_NUMBER) && (luaV_tonumber(o) != 0))
  12. #define tostring(o) ((ttype(o) != LUA_T_STRING) && (luaV_tostring(o) != 0))
  13. void luaV_pack (StkId firstel, int nvararg, TObject *tab);
  14. int luaV_tonumber (TObject *obj);
  15. int luaV_tostring (TObject *obj);
  16. void luaV_setn (Hash *t, int val);
  17. void luaV_gettable (void);
  18. void luaV_settable (TObject *t);
  19. void luaV_rawsettable (TObject *t);
  20. void luaV_getglobal (TaggedString *ts);
  21. void luaV_setglobal (TaggedString *ts);
  22. StkId luaV_execute (Closure *cl, TProtoFunc *tf, StkId base);
  23. void luaV_closure (int nelems);
  24. void luaV_comparison (lua_Type ttype_less, lua_Type ttype_equal,
  25. lua_Type ttype_great, IMS op);
  26. #endif