annotate lib/lua/lua-5.2.2/lvm.h @ 2222:66bd74aa9f5e

smk video draw
author Ritor1
date Tue, 18 Feb 2014 19:43:54 +0600
parents 41cc4dd3c122
children
rev   line source
1866
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
1 /*
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
2 ** $Id: lvm.h,v 2.18 2013/01/08 14:06:55 roberto Exp $
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
3 ** Lua virtual machine
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
4 ** See Copyright Notice in lua.h
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
5 */
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
6
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
7 #ifndef lvm_h
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
8 #define lvm_h
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
9
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
10
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
11 #include "ldo.h"
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
12 #include "lobject.h"
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
13 #include "ltm.h"
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
14
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
15
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
16 #define tostring(L,o) (ttisstring(o) || (luaV_tostring(L, o)))
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
17
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
18 #define tonumber(o,n) (ttisnumber(o) || (((o) = luaV_tonumber(o,n)) != NULL))
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
19
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
20 #define equalobj(L,o1,o2) (ttisequal(o1, o2) && luaV_equalobj_(L, o1, o2))
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
21
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
22 #define luaV_rawequalobj(o1,o2) equalobj(NULL,o1,o2)
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
23
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
24
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
25 /* not to called directly */
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
26 LUAI_FUNC int luaV_equalobj_ (lua_State *L, const TValue *t1, const TValue *t2);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
27
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
28
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
29 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
30 LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
31 LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
32 LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
33 LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key,
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
34 StkId val);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
35 LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key,
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
36 StkId val);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
37 LUAI_FUNC void luaV_finishOp (lua_State *L);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
38 LUAI_FUNC void luaV_execute (lua_State *L);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
39 LUAI_FUNC void luaV_concat (lua_State *L, int total);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
40 LUAI_FUNC void luaV_arith (lua_State *L, StkId ra, const TValue *rb,
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
41 const TValue *rc, TMS op);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
42 LUAI_FUNC void luaV_objlen (lua_State *L, StkId ra, const TValue *rb);
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
43
41cc4dd3c122 Lua 5.2.2 added.
Nomad
parents:
diff changeset
44 #endif