diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-07-09 11:58:28 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-07-09 11:58:28 -0300 |
commit | d88860131a018c407c5afbb775758599e6c588df (patch) | |
tree | 1508e6f14435eed2f5e31342dc5cdd7cdafcf074 /ltests.c | |
parent | 44752fc9ce2588a9b402d335c87660a9ee28a157 (diff) | |
download | lua-d88860131a018c407c5afbb775758599e6c588df.tar.gz lua-d88860131a018c407c5afbb775758599e6c588df.tar.bz2 lua-d88860131a018c407c5afbb775758599e6c588df.zip |
new macro `lua_isudataval' (for completude)
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 1.127 2002/06/20 20:40:38 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.128 2002/06/25 19:16:44 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -578,6 +578,9 @@ static int testC (lua_State *L) { | |||
578 | else if EQ("isuserdata") { | 578 | else if EQ("isuserdata") { |
579 | lua_pushnumber(L, lua_isuserdata(L, getnum)); | 579 | lua_pushnumber(L, lua_isuserdata(L, getnum)); |
580 | } | 580 | } |
581 | else if EQ("isudataval") { | ||
582 | lua_pushnumber(L, lua_isudataval(L, getnum)); | ||
583 | } | ||
581 | else if EQ("isnil") { | 584 | else if EQ("isnil") { |
582 | lua_pushnumber(L, lua_isnil(L, getnum)); | 585 | lua_pushnumber(L, lua_isnil(L, getnum)); |
583 | } | 586 | } |