diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-16 16:25:59 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-16 16:25:59 -0300 |
commit | 6990da0057008adf934d88125ae9cf5162964117 (patch) | |
tree | 551873be0e3921c9c93b7c32d75a72a688bd26b1 /lvm.h | |
parent | d985dc0629c2a10371b345d1ce3e4404bb011ad9 (diff) | |
download | lua-6990da0057008adf934d88125ae9cf5162964117.tar.gz lua-6990da0057008adf934d88125ae9cf5162964117.tar.bz2 lua-6990da0057008adf934d88125ae9cf5162964117.zip |
Lua virtual machine
Diffstat (limited to 'lvm.h')
-rw-r--r-- | lvm.h | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -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 | |||
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 (Word n); | ||
25 | void luaV_setglobal (Word n); | ||
26 | StkId luaV_execute (Closure *func, StkId base); | ||
27 | void luaV_closure (void); | ||
28 | |||
29 | #endif | ||