diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-02-13 17:39:34 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-02-13 17:39:34 -0200 |
commit | 547e47649fa086e49c146464a2d4a33de713d4b7 (patch) | |
tree | 934f65dbc061d3f738324046966b00327262ab15 /lauxlib.c | |
parent | 41dd32e18ecbb298437c124cbab60de1f90babbb (diff) | |
download | lua-547e47649fa086e49c146464a2d4a33de713d4b7.tar.gz lua-547e47649fa086e49c146464a2d4a33de713d4b7.tar.bz2 lua-547e47649fa086e49c146464a2d4a33de713d4b7.zip |
'luaL_typeerror' spelled right
Diffstat (limited to 'lauxlib.c')
-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.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 | ||
55 | LUALIB_API int luaL_typerror (lua_State *L, int narg, const char *tname) { | 55 | LUALIB_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 | ||
62 | static void tag_error (lua_State *L, int narg, int tag) { | 62 | static 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 | ||
177 | LUALIB_API void *luaL_checkudata (lua_State *L, int ud, const char *tname) { | 177 | LUALIB_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 | ||