diff options
Diffstat (limited to 'lauxlib.c')
| -rw-r--r-- | lauxlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 | ||
| 69 | LUALIB_API void luaL_check_stack (lua_State *L, int space, const char *mes) { | 69 | LUALIB_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 | ||
