From 6990da0057008adf934d88125ae9cf5162964117 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 16 Sep 1997 16:25:59 -0300 Subject: Lua virtual machine --- lvm.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 lvm.h (limited to 'lvm.h') diff --git a/lvm.h b/lvm.h new file mode 100644 index 00000000..9a180e3e --- /dev/null +++ b/lvm.h @@ -0,0 +1,29 @@ +/* +** $Id: $ +** Lua virtual machine +** See Copyright Notice in lua.h +*/ + +#ifndef lvm_h +#define lvm_h + + +#include "ldo.h" +#include "lobject.h" + + +#define tonumber(o) ((ttype(o) != LUA_T_NUMBER) && (luaV_tonumber(o) != 0)) +#define tostring(o) ((ttype(o) != LUA_T_STRING) && (luaV_tostring(o) != 0)) + + +void luaV_pack (StkId firstel, int nvararg, TObject *tab); +int luaV_tonumber (TObject *obj); +int luaV_tostring (TObject *obj); +void luaV_gettable (void); +void luaV_settable (TObject *t, int mode); +void luaV_getglobal (Word n); +void luaV_setglobal (Word n); +StkId luaV_execute (Closure *func, StkId base); +void luaV_closure (void); + +#endif -- cgit v1.2.3-55-g6feb