Imported from ../lua-3.1.tar.gz.
[lua.git] / src / lvm.h
blob9b3f900913c0f49ea9abf720d2179d7e17d66103
1 /*
2 ** $Id: lvm.h,v 1.4 1997/12/15 16:17:20 roberto Exp $
3 ** Lua virtual machine
4 ** See Copyright Notice in lua.h
5 */
7 #ifndef lvm_h
8 #define lvm_h
11 #include "ldo.h"
12 #include "lobject.h"
15 #define tonumber(o) ((ttype(o) != LUA_T_NUMBER) && (luaV_tonumber(o) != 0))
16 #define tostring(o) ((ttype(o) != LUA_T_STRING) && (luaV_tostring(o) != 0))
19 void luaV_pack (StkId firstel, int nvararg, TObject *tab);
20 int luaV_tonumber (TObject *obj);
21 int luaV_tostring (TObject *obj);
22 void luaV_gettable (void);
23 void luaV_settable (TObject *t, int mode);
24 void luaV_getglobal (TaggedString *ts);
25 void luaV_setglobal (TaggedString *ts);
26 StkId luaV_execute (Closure *cl, TProtoFunc *tf, StkId base);
27 void luaV_closure (int nelems);
29 #endif