aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lauxlib.c')
-rw-r--r--lauxlib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lauxlib.c b/lauxlib.c
index c716c0db..0e0167e9 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.c,v 1.178 2008/06/13 18:45:35 roberto Exp roberto $ 2** $Id: lauxlib.c,v 1.179 2008/07/03 14:21:41 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*/
@@ -52,7 +52,7 @@ LUALIB_API int luaL_argerror (lua_State *L, int narg, const char *extramsg) {
52} 52}
53 53
54 54
55LUALIB_API int luaL_typerror (lua_State *L, int narg, const char *tname) { 55LUALIB_API int luaL_typeerror (lua_State *L, int narg, const char *tname) {
56 const char *msg = lua_pushfstring(L, "%s expected, got %s", 56 const char *msg = lua_pushfstring(L, "%s expected, got %s",
57 tname, luaL_typename(L, narg)); 57 tname, luaL_typename(L, narg));
58 return luaL_argerror(L, narg, msg); 58 return luaL_argerror(L, narg, msg);
@@ -60,7 +60,7 @@ LUALIB_API int luaL_typerror (lua_State *L, int narg, const char *tname) {
60 60
61 61
62static void tag_error (lua_State *L, int narg, int tag) { 62static void tag_error (lua_State *L, int narg, int tag) {
63 luaL_typerror(L, narg, lua_typename(L, tag)); 63 luaL_typeerror(L, narg, lua_typename(L, tag));
64} 64}
65 65
66 66
@@ -176,7 +176,7 @@ LUALIB_API void *luaL_testudata (lua_State *L, int ud, const char *tname) {
176 176
177LUALIB_API void *luaL_checkudata (lua_State *L, int ud, const char *tname) { 177LUALIB_API void *luaL_checkudata (lua_State *L, int ud, const char *tname) {
178 void *p = luaL_testudata(L, ud, tname); 178 void *p = luaL_testudata(L, ud, tname);
179 if (p == NULL) luaL_typerror(L, ud, tname); 179 if (p == NULL) luaL_typeerror(L, ud, tname);
180 return p; 180 return p;
181} 181}
182 182