diff options
Diffstat (limited to '')
| -rw-r--r-- | lauxlib.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lauxlib.c,v 1.50 2001/04/23 16:35:45 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.51 2001/07/12 18:11:58 roberto Exp $ |
| 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 | */ |
| @@ -54,19 +54,19 @@ static void tag_error (lua_State *L, int narg, int tag) { | |||
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | 56 | ||
| 57 | LUALIB_API void luaL_checkstack (lua_State *L, int space, const l_char *mes) { | 57 | LUALIB_API void luaL_check_stack (lua_State *L, int space, const l_char *mes) { |
| 58 | if (space > lua_stackspace(L)) | 58 | if (space > lua_stackspace(L)) |
| 59 | luaL_verror(L, l_s("stack overflow (%.30s)"), mes); | 59 | luaL_verror(L, l_s("stack overflow (%.30s)"), mes); |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | 62 | ||
| 63 | LUALIB_API void luaL_checktype(lua_State *L, int narg, int t) { | 63 | LUALIB_API void luaL_check_rawtype(lua_State *L, int narg, int t) { |
| 64 | if (lua_rawtag(L, narg) != t) | 64 | if (lua_rawtag(L, narg) != t) |
| 65 | tag_error(L, narg, t); | 65 | tag_error(L, narg, t); |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | 68 | ||
| 69 | LUALIB_API void luaL_checkany (lua_State *L, int narg) { | 69 | LUALIB_API void luaL_check_any (lua_State *L, int narg) { |
| 70 | if (lua_rawtag(L, narg) == LUA_TNONE) | 70 | if (lua_rawtag(L, narg) == LUA_TNONE) |
| 71 | luaL_argerror(L, narg, l_s("value expected")); | 71 | luaL_argerror(L, narg, l_s("value expected")); |
| 72 | } | 72 | } |
