aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-07-09 11:58:28 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-07-09 11:58:28 -0300
commitd88860131a018c407c5afbb775758599e6c588df (patch)
tree1508e6f14435eed2f5e31342dc5cdd7cdafcf074 /ltests.c
parent44752fc9ce2588a9b402d335c87660a9ee28a157 (diff)
downloadlua-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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ltests.c b/ltests.c
index f3e5f9a1..99623541 100644
--- a/ltests.c
+++ b/ltests.c
@@ -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 }