From c16a35d6696ac995ef6c7b60f251f6821811f50f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 7 Mar 2002 15:15:10 -0300 Subject: `lua_stackspace' replaced by `lua_checkstack' --- lauxlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lauxlib.c') diff --git a/lauxlib.c b/lauxlib.c index d71763fb..ceef7026 100644 --- a/lauxlib.c +++ b/lauxlib.c @@ -1,5 +1,5 @@ /* -** $Id: lauxlib.c,v 1.1 2001/11/29 22:14:34 rieru Exp rieru $ +** $Id: lauxlib.c,v 1.60 2002/02/14 21:41:53 roberto Exp roberto $ ** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ @@ -67,7 +67,7 @@ static void tag_error (lua_State *L, int narg, int tag) { LUALIB_API void luaL_check_stack (lua_State *L, int space, const char *mes) { - if (space > lua_stackspace(L)) + if (!lua_checkstack(L, space)) luaL_verror(L, "stack overflow (%.30s)", mes); } -- cgit v1.2.3-55-g6feb