diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2007-02-09 11:04:52 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2007-02-09 11:04:52 -0200 |
commit | 08f902cf495752494088392a86f11a22755cc8cb (patch) | |
tree | 93aa40d1584b07f9bb3d74ab148d755e0044e041 /lvm.h | |
parent | d3c304e92e5581bb7b8b7c5a61beb0a6faa108c2 (diff) | |
download | lua-08f902cf495752494088392a86f11a22755cc8cb.tar.gz lua-08f902cf495752494088392a86f11a22755cc8cb.tar.bz2 lua-08f902cf495752494088392a86f11a22755cc8cb.zip |
better documentation for auxiliary functions (that should be called only
through specific macros).
Diffstat (limited to '')
-rw-r--r-- | lvm.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.h,v 2.4 2005/04/25 19:24:10 roberto Exp roberto $ | 2 | ** $Id: lvm.h,v 2.5 2005/08/22 18:54:49 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -19,11 +19,13 @@ | |||
19 | (((o) = luaV_tonumber(o,n)) != NULL)) | 19 | (((o) = luaV_tonumber(o,n)) != NULL)) |
20 | 20 | ||
21 | #define equalobj(L,o1,o2) \ | 21 | #define equalobj(L,o1,o2) \ |
22 | (ttype(o1) == ttype(o2) && luaV_equalval(L, o1, o2)) | 22 | (ttype(o1) == ttype(o2) && luaV_equalval_(L, o1, o2)) |
23 | 23 | ||
24 | 24 | ||
25 | /* not to called directly */ | ||
26 | LUAI_FUNC int luaV_equalval_ (lua_State *L, const TValue *t1, const TValue *t2); | ||
27 | |||
25 | LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r); | 28 | LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r); |
26 | LUAI_FUNC int luaV_equalval (lua_State *L, const TValue *t1, const TValue *t2); | ||
27 | LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n); | 29 | LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n); |
28 | LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj); | 30 | LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj); |
29 | LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key, | 31 | LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key, |