diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-05-16 10:58:21 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2013-02-16 23:10:16 (GMT) |
commit | 1061e5282d7deeb3e15a5d1c9bc03e0759b1f2cd (patch) | |
tree | 82c384e4afb8e8eefec15e7481c9f5648071ee33 /libs/lua/src/lvm.h | |
parent | fe2d9476d5025048f45ea7535a8c7412daa50438 (diff) | |
download | fluxbox_pavel-1061e5282d7deeb3e15a5d1c9bc03e0759b1f2cd.zip fluxbox_pavel-1061e5282d7deeb3e15a5d1c9bc03e0759b1f2cd.tar.bz2 |
Add lua as an internal library in libs/lua
Diffstat (limited to 'libs/lua/src/lvm.h')
-rw-r--r-- | libs/lua/src/lvm.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/libs/lua/src/lvm.h b/libs/lua/src/lvm.h new file mode 100644 index 0000000..bfe4f56 --- /dev/null +++ b/libs/lua/src/lvm.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /* | ||
2 | ** $Id: lvm.h,v 2.5.1.1 2007/12/27 13:02:25 roberto Exp $ | ||
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 | #include "ltm.h" | ||
14 | |||
15 | |||
16 | #define tostring(L,o) ((ttype(o) == LUA_TSTRING) || (luaV_tostring(L, o))) | ||
17 | |||
18 | #define tonumber(o,n) (ttype(o) == LUA_TNUMBER || \ | ||
19 | (((o) = luaV_tonumber(o,n)) != NULL)) | ||
20 | |||
21 | #define equalobj(L,o1,o2) \ | ||
22 | (ttype(o1) == ttype(o2) && luaV_equalval(L, o1, o2)) | ||
23 | |||
24 | |||
25 | LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r); | ||
26 | LUAI_FUNC int luaV_equalval (lua_State *L, const TValue *t1, const TValue *t2); | ||
27 | LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n); | ||
28 | LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj); | ||
29 | LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key, | ||
30 | StkId val); | ||
31 | LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key, | ||
32 | StkId val); | ||
33 | LUAI_FUNC void luaV_execute (lua_State *L, int nexeccalls); | ||
34 | LUAI_FUNC void luaV_concat (lua_State *L, int total, int last); | ||
35 | |||
36 | #endif | ||