annotate src/lua/lvm.h @ 267:498af3c3cf15
Added hardcoded learnsets.
author |
Dylan Holmes <ocsenave@gmail.com> |
date |
Mon, 26 Mar 2012 23:18:22 -0500 |
parents |
27763b933818 |
children |
|
rev |
line source |
rlm@1
|
1 /*
|
rlm@1
|
2 ** $Id: lvm.h,v 2.5.1.1 2007/12/27 13:02:25 roberto Exp $
|
rlm@1
|
3 ** Lua virtual machine
|
rlm@1
|
4 ** See Copyright Notice in lua.h
|
rlm@1
|
5 */
|
rlm@1
|
6
|
rlm@1
|
7 #ifndef lvm_h
|
rlm@1
|
8 #define lvm_h
|
rlm@1
|
9
|
rlm@1
|
10
|
rlm@1
|
11 #include "ldo.h"
|
rlm@1
|
12 #include "lobject.h"
|
rlm@1
|
13 #include "ltm.h"
|
rlm@1
|
14
|
rlm@1
|
15
|
rlm@1
|
16 #define tostring(L,o) ((ttype(o) == LUA_TSTRING) || (luaV_tostring(L, o)))
|
rlm@1
|
17
|
rlm@1
|
18 #define tonumber(o,n) (ttype(o) == LUA_TNUMBER || \
|
rlm@1
|
19 (((o) = luaV_tonumber(o,n)) != NULL))
|
rlm@1
|
20
|
rlm@1
|
21 #define equalobj(L,o1,o2) \
|
rlm@1
|
22 (ttype(o1) == ttype(o2) && luaV_equalval(L, o1, o2))
|
rlm@1
|
23
|
rlm@1
|
24
|
rlm@1
|
25 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r);
|
rlm@1
|
26 LUAI_FUNC int luaV_equalval (lua_State *L, const TValue *t1, const TValue *t2);
|
rlm@1
|
27 LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n);
|
rlm@1
|
28 LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj);
|
rlm@1
|
29 LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key,
|
rlm@1
|
30 StkId val);
|
rlm@1
|
31 LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key,
|
rlm@1
|
32 StkId val);
|
rlm@1
|
33 LUAI_FUNC void luaV_execute (lua_State *L, int nexeccalls);
|
rlm@1
|
34 LUAI_FUNC void luaV_concat (lua_State *L, int total, int last);
|
rlm@1
|
35
|
rlm@1
|
36 #endif
|