Nut/OS  4.10.3
API Reference
lvm.h
Go to the documentation of this file.
00001 /*
00002 ** $Id: lvm.h 2345 2008-10-10 11:52:25Z haraldkipp $
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 <lua/ldo.h>
00012 #include <lua/lobject.h>
00013 #include <lua/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