summaryrefslogtreecommitdiff
path: root/src/lvm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lvm.h')
-rw-r--r--src/lvm.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/lvm.h b/src/lvm.h
new file mode 100644
index 00000000..9b3f9009
--- /dev/null
+++ b/src/lvm.h
@@ -0,0 +1,29 @@
+/*
+** $Id: lvm.h,v 1.4 1997/12/15 16:17:20 roberto Exp $
+** 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 (TaggedString *ts);
+void luaV_setglobal (TaggedString *ts);
+StkId luaV_execute (Closure *cl, TProtoFunc *tf, StkId base);
+void luaV_closure (int nelems);
+
+#endif