aboutsummaryrefslogtreecommitdiff
path: root/lvm.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2007-12-27 11:02:25 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2007-12-27 11:02:25 -0200
commitf5ae26ec6c2eb69f03f316e59c1e1977c52c7c23 (patch)
treeb4c761dac7648caea2cc20f8ebc2dd5b27a3fa1e /lvm.h
parent98194db4295726069137d13b8d24fca8cbf892b6 (diff)
downloadlua-f5ae26ec6c2eb69f03f316e59c1e1977c52c7c23.tar.gz
lua-f5ae26ec6c2eb69f03f316e59c1e1977c52c7c23.tar.bz2
lua-f5ae26ec6c2eb69f03f316e59c1e1977c52c7c23.zip
official branch for Lua 5.1
Diffstat (limited to 'lvm.h')
-rw-r--r--lvm.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/lvm.h b/lvm.h
deleted file mode 100644
index adca8cdd..00000000
--- a/lvm.h
+++ /dev/null
@@ -1,36 +0,0 @@
1/*
2** $Id: lvm.h,v 2.4 2005/04/25 19:24:10 roberto Exp roberto $
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
25LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r);
26LUAI_FUNC int luaV_equalval (lua_State *L, const TValue *t1, const TValue *t2);
27LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n);
28LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj);
29LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key,
30 StkId val);
31LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key,
32 StkId val);
33LUAI_FUNC void luaV_execute (lua_State *L, int nexeccalls);
34LUAI_FUNC void luaV_concat (lua_State *L, int total, int last);
35
36#endif