summaryrefslogtreecommitdiff
path: root/lvm.h
diff options
context:
space:
mode:
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