The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
lvm.h
Go to the documentation of this file.
1 /*
2 ** Lua virtual machine
3 ** See Copyright Notice in lua.h
4 */
5 
6 #ifndef lvm_h
7 #define lvm_h
8 
9 
10 #include "ldo.h"
11 #include "lobject.h"
12 #include "ltm.h"
13 
14 
15 #define tostring(L,o) (ttisstring(o) || (luaV_tostring(L, o)))
16 
17 #define tonumber(o,n) (ttisnumber(o) || (((o) = luaV_tonumber(o,n)) != NULL))
18 
19 #define equalobj(L,o1,o2) (ttisequal(o1, o2) && luaV_equalobj_(L, o1, o2))
20 
21 #define luaV_rawequalobj(o1,o2) equalobj(NULL,o1,o2)
22 
23 
24 /* not to called directly */
25 LUAI_FUNC int luaV_equalobj_ (lua_State *L, const TValue *t1, const TValue *t2);
26 
27 
28 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r);
29 LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r);
30 LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n);
32 LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key,
33  StkId val);
34 LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key,
35  StkId val);
38 LUAI_FUNC void luaV_concat (lua_State *L, int total);
39 LUAI_FUNC void luaV_arith (lua_State *L, StkId ra, const TValue *rb,
40  const TValue *rc, TMS op);
41 LUAI_FUNC void luaV_objlen (lua_State *L, StkId ra, const TValue *rb);
42 
43 #endif
LUAI_FUNC void luaV_finishOp(lua_State *L)
Definition: lvm.cpp:423
LUAI_FUNC int luaV_equalobj_(lua_State *L, const TValue *t1, const TValue *t2)
Definition: lvm.cpp:260
#define LUAI_FUNC
Definition: luaconf.h:187
LUAI_FUNC int luaV_tostring(lua_State *L, StkId obj)
Definition: lvm.cpp:46
GLuint const GLfloat * val
Definition: glew.h:2614
LUAI_FUNC const TValue * luaV_tonumber(const TValue *obj, TValue *n)
Definition: lvm.cpp:34
LUAI_FUNC void luaV_settable(lua_State *L, const TValue *t, TValue *key, StkId val)
Definition: lvm.cpp:135
GLdouble GLdouble t
Definition: glew.h:1366
GLdouble l
Definition: glew.h:6966
GLhandleARB obj
Definition: glew.h:4486
LUAI_FUNC void luaV_objlen(lua_State *L, StkId ra, const TValue *rb)
Definition: lvm.cpp:335
GLdouble GLdouble GLdouble r
Definition: glew.h:1374
LUAI_FUNC void luaV_execute(lua_State *L)
Definition: lvm.cpp:534
TMS
Definition: ltm.h:17
GLclampd n
Definition: glew.h:5903
LUAI_FUNC int luaV_lessequal(lua_State *L, const TValue *l, const TValue *r)
Definition: lvm.cpp:243
LUAI_FUNC void luaV_arith(lua_State *L, StkId ra, const TValue *rb, const TValue *rc, TMS op)
Definition: lvm.cpp:360
LUAI_FUNC int luaV_lessthan(lua_State *L, const TValue *l, const TValue *r)
Definition: lvm.cpp:231
LUAI_FUNC void luaV_concat(lua_State *L, int total)
Definition: lvm.cpp:293
LUAI_FUNC void luaV_gettable(lua_State *L, const TValue *t, TValue *key, StkId val)
Definition: lvm.cpp:109