1 /* $NetBSD: lvm.h,v 1.1.1.2 2012/03/15 00:08:09 alnsn Exp $ */
4 ** $Id: lvm.h,v 1.1.1.2 2012/03/15 00:08:09 alnsn Exp $
6 ** See Copyright Notice in lua.h
18 #define tostring(L,o) ((ttype(o) == LUA_TSTRING) || (luaV_tostring(L, o)))
20 #define tonumber(o,n) (ttype(o) == LUA_TNUMBER || \
21 (((o) = luaV_tonumber(o,n)) != NULL))
23 #define equalobj(L,o1,o2) \
24 (ttype(o1) == ttype(o2) && luaV_equalval(L, o1, o2))
27 LUAI_FUNC
int luaV_lessthan (lua_State
*L
, const TValue
*l
, const TValue
*r
);
28 LUAI_FUNC
int luaV_equalval (lua_State
*L
, const TValue
*t1
, const TValue
*t2
);
29 LUAI_FUNC
const TValue
*luaV_tonumber (const TValue
*obj
, TValue
*n
);
30 LUAI_FUNC
int luaV_tostring (lua_State
*L
, StkId obj
);
31 LUAI_FUNC
void luaV_gettable (lua_State
*L
, const TValue
*t
, TValue
*key
,
33 LUAI_FUNC
void luaV_settable (lua_State
*L
, const TValue
*t
, TValue
*key
,
35 LUAI_FUNC
void luaV_execute (lua_State
*L
, int nexeccalls
);
36 LUAI_FUNC
void luaV_concat (lua_State
*L
, int total
, int last
);