00001 /* 00002 ** $Id: lvm.h,v 2.5.1.1 2007/12/27 13:02:25 roberto Exp $ 00003 ** Lua virtual machine 00004 ** See Copyright Notice in lua.h 00005 */ 00006 00007 #ifndef lvm_h 00008 #define lvm_h 00009 00010 00011 #include "ldo.h" 00012 #include "lobject.h" 00013 #include "ltm.h" 00014 00015 00016 #define tostring(L,o) ((ttype(o) == LUA_TSTRING) || (luaV_tostring(L, o))) 00017 00018 #define tonumber(o,n) (ttype(o) == LUA_TNUMBER || \ 00019 (((o) = luaV_tonumber(o,n)) != NULL)) 00020 00021 #define equalobj(L,o1,o2) \ 00022 (ttype(o1) == ttype(o2) && luaV_equalval(L, o1, o2)) 00023 00024 00025 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r); 00026 LUAI_FUNC int luaV_equalval (lua_State *L, const TValue *t1, const TValue *t2); 00027 LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n); 00028 LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj); 00029 LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key, 00030 StkId val); 00031 LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key, 00032 StkId val); 00033 LUAI_FUNC void luaV_execute (lua_State *L, int nexeccalls); 00034 LUAI_FUNC void luaV_concat (lua_State *L, int total, int last); 00035 00036 #endif
ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:55 2011 by Doxygen 1.6.1