aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ltests.c b/ltests.c
index feeeaee9..33dc272a 100644
--- a/ltests.c
+++ b/ltests.c
@@ -225,7 +225,7 @@ static int get_limits (lua_State *L) {
225 225
226 226
227static int mem_query (lua_State *L) { 227static int mem_query (lua_State *L) {
228 if (lua_isnull(L, 1)) { 228 if (lua_isnone(L, 1)) {
229 lua_pushnumber(L, memdebug_total); 229 lua_pushnumber(L, memdebug_total);
230 lua_pushnumber(L, memdebug_numblocks); 230 lua_pushnumber(L, memdebug_numblocks);
231 lua_pushnumber(L, memdebug_maxmem); 231 lua_pushnumber(L, memdebug_maxmem);
@@ -239,7 +239,7 @@ static int mem_query (lua_State *L) {
239 239
240 240
241static int hash_query (lua_State *L) { 241static int hash_query (lua_State *L) {
242 if (lua_isnull(L, 2)) { 242 if (lua_isnone(L, 2)) {
243 luaL_arg_check(L, lua_type(L, 1) == LUA_TSTRING, 1, "string expected"); 243 luaL_arg_check(L, lua_type(L, 1) == LUA_TSTRING, 1, "string expected");
244 lua_pushnumber(L, tsvalue(luaA_index(L, 1))->tsv.hash); 244 lua_pushnumber(L, tsvalue(luaA_index(L, 1))->tsv.hash);
245 } 245 }
@@ -335,7 +335,7 @@ static int unref (lua_State *L) {
335 335
336static int eventtable (lua_State *L) { 336static int eventtable (lua_State *L) {
337 luaL_check_any(L, 1); 337 luaL_check_any(L, 1);
338 if (lua_isnull(L, 2)) 338 if (lua_isnone(L, 2))
339 lua_geteventtable(L, 1); 339 lua_geteventtable(L, 1);
340 else { 340 else {
341 lua_settop(L, 2); 341 lua_settop(L, 2);
@@ -429,7 +429,7 @@ static int doremote (lua_State *L) {
429 } 429 }
430 else { 430 else {
431 int i = 0; 431 int i = 0;
432 while (!lua_isnull(L1, ++i)) 432 while (!lua_isnone(L1, ++i))
433 lua_pushstring(L, lua_tostring(L1, i)); 433 lua_pushstring(L, lua_tostring(L1, i));
434 lua_pop(L1, i-1); 434 lua_pop(L1, i-1);
435 return i-1; 435 return i-1;
@@ -518,7 +518,7 @@ static int testC (lua_State *L) {
518 lua_pushnumber(L, lua_isnil(L, getnum)); 518 lua_pushnumber(L, lua_isnil(L, getnum));
519 } 519 }
520 else if EQ("isnull") { 520 else if EQ("isnull") {
521 lua_pushnumber(L, lua_isnull(L, getnum)); 521 lua_pushnumber(L, lua_isnone(L, getnum));
522 } 522 }
523 else if EQ("tonumber") { 523 else if EQ("tonumber") {
524 lua_pushnumber(L, lua_tonumber(L, getnum)); 524 lua_pushnumber(L, lua_tonumber(L, getnum));