aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-03-07 15:15:10 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-03-07 15:15:10 -0300
commitc16a35d6696ac995ef6c7b60f251f6821811f50f (patch)
tree8a25bd8597f46fe7db32cce9efa6668f6b950edc /lauxlib.c
parent8f837e83b20f3c409ba187765c2bf5aefc111923 (diff)
downloadlua-c16a35d6696ac995ef6c7b60f251f6821811f50f.tar.gz
lua-c16a35d6696ac995ef6c7b60f251f6821811f50f.tar.bz2
lua-c16a35d6696ac995ef6c7b60f251f6821811f50f.zip
`lua_stackspace' replaced by `lua_checkstack'
Diffstat (limited to 'lauxlib.c')
-rw-r--r--lauxlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lauxlib.c b/lauxlib.c
index d71763fb..ceef7026 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.c,v 1.1 2001/11/29 22:14:34 rieru Exp rieru $ 2** $Id: lauxlib.c,v 1.60 2002/02/14 21:41:53 roberto Exp roberto $
3** Auxiliary functions for building Lua libraries 3** Auxiliary functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -67,7 +67,7 @@ static void tag_error (lua_State *L, int narg, int tag) {
67 67
68 68
69LUALIB_API void luaL_check_stack (lua_State *L, int space, const char *mes) { 69LUALIB_API void luaL_check_stack (lua_State *L, int space, const char *mes) {
70 if (space > lua_stackspace(L)) 70 if (!lua_checkstack(L, space))
71 luaL_verror(L, "stack overflow (%.30s)", mes); 71 luaL_verror(L, "stack overflow (%.30s)", mes);
72} 72}
73 73