From afa0d0ac0df60e37fd9473f50041505246228b35 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 10 Oct 2006 14:40:17 -0300 Subject: new constant LUA_OK --- ltests.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index 665b5d90..c2d88d2e 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.38 2006/07/11 15:53:29 roberto Exp roberto $ +** $Id: ltests.c,v 2.39 2006/09/11 14:07:24 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -690,7 +690,7 @@ static int doonnewstack (lua_State *L) { size_t l; const char *s = luaL_checklstring(L, 1, &l); int status = luaL_loadbuffer(L1, s, l, s); - if (status == 0) + if (status == LUA_OK) status = lua_pcall(L1, 0, 0, 0); lua_pushinteger(L, status); return 1; @@ -759,9 +759,9 @@ static int doremote (lua_State *L) { int status; lua_settop(L1, 0); status = luaL_loadbuffer(L1, code, lcode, code); - if (status == 0) + if (status == LUA_OK) status = lua_pcall(L1, 0, LUA_MULTRET, 0); - if (status != 0) { + if (status != LUA_OK) { lua_pushnil(L); lua_pushinteger(L, status); lua_pushstring(L, lua_tostring(L1, -1)); -- cgit v1.2.3-55-g6feb