lvm.h File Reference

#include "ldo.h"
#include "lobject.h"
#include "ltm.h"

Go to the source code of this file.

Defines

#define tostring(L, o)   ((ttype(o) == LUA_TSTRING) || (luaV_tostring(L, o)))
#define tonumber(o, n)
#define equalobj(L, o1, o2)   (ttype(o1) == ttype(o2) && luaV_equalval(L, o1, o2))

Functions

LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r)
LUAI_FUNC int luaV_equalval (lua_State *L, const TValue *t1, const TValue *t2)
LUAI_FUNC const TValueluaV_tonumber (const TValue *obj, TValue *n)
LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj)
LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key, StkId val)
LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key, StkId val)
LUAI_FUNC void luaV_execute (lua_State *L, int nexeccalls)
LUAI_FUNC void luaV_concat (lua_State *L, int total, int last)


Define Documentation

#define equalobj ( L,
o1,
o2   )     (ttype(o1) == ttype(o2) && luaV_equalval(L, o1, o2))

Definition at line 21 of file lvm.h.

Referenced by lua_equal().

#define tonumber ( o,
n   ) 

Value:

(ttype(o) == LUA_TNUMBER || \
                         (((o) = luaV_tonumber(o,n)) != NULL))

Definition at line 18 of file lvm.h.

Referenced by lua_isnumber(), lua_tointeger(), and lua_tonumber().

#define tostring ( L,
 )     ((ttype(o) == LUA_TSTRING) || (luaV_tostring(L, o)))

Definition at line 16 of file lvm.h.

Referenced by luaV_concat().


Function Documentation

LUAI_FUNC void luaV_concat ( lua_State L,
int  total,
int  last 
)

Definition at line 281 of file lvm.cpp.

References lua_State::base, call_binTM(), G, luaG_concaterror(), luaG_runerror(), luaS_newlstr(), luaZ_openspace(), MAX_SIZET, setsvalue2s, svalue, TM_CONCAT, tostring, tsvalue, ttisnumber, and ttisstring.

LUAI_FUNC int luaV_equalval ( lua_State L,
const TValue t1,
const TValue t2 
)

Definition at line 253 of file lvm.cpp.

References bvalue, callTMres(), gcvalue, get_compTM(), hvalue, l_isfalse, lua_assert, LUA_TBOOLEAN, LUA_TLIGHTUSERDATA, LUA_TNIL, LUA_TNUMBER, LUA_TTABLE, LUA_TUSERDATA, NULL, nvalue, pvalue, TM_EQ, lua_State::top, ttype, and uvalue.

LUAI_FUNC void luaV_execute ( lua_State L,
int  nexeccalls 
)

Definition at line 376 of file lvm.cpp.

LUAI_FUNC void luaV_gettable ( lua_State L,
const TValue t,
TValue key,
StkId  val 
)

Definition at line 110 of file lvm.cpp.

References callTMres(), fasttm, hvalue, luaG_runerror(), luaG_typeerror(), luaH_get(), luaT_gettmbyobj(), MAXTAGLOOP, Table::metatable, NULL, setobj2s, TM_INDEX, ttisfunction, ttisnil, and ttistable.

LUAI_FUNC int luaV_lessthan ( lua_State L,
const TValue l,
const TValue r 
)

Definition at line 223 of file lvm.cpp.

References call_orderTM(), l_strcmp(), luaG_ordererror(), nvalue, rawtsvalue, TM_LT, ttisnumber, ttisstring, and ttype.

LUAI_FUNC void luaV_settable ( lua_State L,
const TValue t,
TValue key,
StkId  val 
)

Definition at line 136 of file lvm.cpp.

References callTM(), fasttm, hvalue, luaC_barriert, luaG_runerror(), luaG_typeerror(), luaH_set(), luaT_gettmbyobj(), MAXTAGLOOP, Table::metatable, NULL, setobj2t, TM_NEWINDEX, ttisfunction, ttisnil, and ttistable.

LUAI_FUNC const TValue* luaV_tonumber ( const TValue obj,
TValue n 
)

Definition at line 35 of file lvm.cpp.

References luaO_str2d(), NULL, setnvalue, svalue, ttisnumber, and ttisstring.

LUAI_FUNC int luaV_tostring ( lua_State L,
StkId  obj 
)

Definition at line 47 of file lvm.cpp.

References lua_number2str, LUAI_MAXNUMBER2STR, luaS_new, nvalue, setsvalue2s, and ttisnumber.


Generated on Mon Feb 16 15:14:58 2009 for Scorched3D by  doxygen 1.5.3