summaryrefslogtreecommitdiff
path: root/lvm.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-09-16 16:25:59 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-09-16 16:25:59 -0300
commit6990da0057008adf934d88125ae9cf5162964117 (patch)
tree551873be0e3921c9c93b7c32d75a72a688bd26b1 /lvm.h
parentd985dc0629c2a10371b345d1ce3e4404bb011ad9 (diff)
downloadlua-6990da0057008adf934d88125ae9cf5162964117.tar.gz
lua-6990da0057008adf934d88125ae9cf5162964117.tar.bz2
lua-6990da0057008adf934d88125ae9cf5162964117.zip
Lua virtual machine
Diffstat (limited to 'lvm.h')
-rw-r--r--lvm.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/lvm.h b/lvm.h
new file mode 100644
index 00000000..9a180e3e
--- /dev/null
+++ b/lvm.h
@@ -0,0 +1,29 @@
1/*
2** $Id: $
3** Lua virtual machine
4** See Copyright Notice in lua.h
5*/
6
7#ifndef lvm_h
8#define lvm_h
9
10
11#include "ldo.h"
12#include "lobject.h"
13
14
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))
17
18
19void luaV_pack (StkId firstel, int nvararg, TObject *tab);
20int luaV_tonumber (TObject *obj);
21int luaV_tostring (TObject *obj);
22void luaV_gettable (void);
23void luaV_settable (TObject *t, int mode);
24void luaV_getglobal (Word n);
25void luaV_setglobal (Word n);
26StkId luaV_execute (Closure *func, StkId base);
27void luaV_closure (void);
28
29#endif