lua/lvm.h

Go to the documentation of this file.
00001 /*
00002 ** $Id: lvm.h,v 2.17 2011/05/31 18:27:56 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) (ttisstring(o) || (luaV_tostring(L, o)))
00017 
00018 #define tonumber(o,n)   (ttisnumber(o) || (((o) = luaV_tonumber(o,n)) != NULL))
00019 
00020 #define equalobj(L,o1,o2)  (ttisequal(o1, o2) && luaV_equalobj_(L, o1, o2))
00021 
00022 #define luaV_rawequalobj(t1,t2)  \
00023         (ttisequal(t1,t2) && luaV_equalobj_(NULL,t1,t2))
00024 
00025 
00026 /* not to called directly */
00027 LUAI_FUNC int luaV_equalobj_ (lua_State *L, const TValue *t1, const TValue *t2);
00028 
00029 
00030 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r);
00031 LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r);
00032 LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n);
00033 LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj);
00034 LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key,
00035                                             StkId val);
00036 LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key,
00037                                             StkId val);
00038 LUAI_FUNC void luaV_finishOp (lua_State *L);
00039 LUAI_FUNC void luaV_execute (lua_State *L);
00040 LUAI_FUNC void luaV_concat (lua_State *L, int total);
00041 LUAI_FUNC void luaV_arith (lua_State *L, StkId ra, const TValue *rb,
00042                            const TValue *rc, TMS op);
00043 LUAI_FUNC void luaV_objlen (lua_State *L, StkId ra, const TValue *rb);
00044 
00045 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:03:05 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs