From 547e47649fa086e49c146464a2d4a33de713d4b7 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 13 Feb 2009 17:39:34 -0200 Subject: 'luaL_typeerror' spelled right --- lauxlib.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lauxlib.h') diff --git a/lauxlib.h b/lauxlib.h index 34172b9a..819e4d27 100644 --- a/lauxlib.h +++ b/lauxlib.h @@ -1,5 +1,5 @@ /* -** $Id: lauxlib.h,v 1.93 2007/06/22 15:39:34 roberto Exp roberto $ +** $Id: lauxlib.h,v 1.94 2008/01/03 17:07:59 roberto Exp roberto $ ** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ @@ -34,7 +34,7 @@ LUALIB_API void (luaL_register) (lua_State *L, const char *libname, LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e); LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e); LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len); -LUALIB_API int (luaL_typerror) (lua_State *L, int narg, const char *tname); +LUALIB_API int (luaL_typeerror) (lua_State *L, int narg, const char *tname); LUALIB_API int (luaL_argerror) (lua_State *L, int numarg, const char *extramsg); LUALIB_API const char *(luaL_checklstring) (lua_State *L, int numArg, size_t *l); @@ -161,6 +161,10 @@ LUALIB_API void (luaL_pushresult) (luaL_Buffer *B); #define luaL_reg luaL_Reg + +/* compatibility with previous wrong spelling */ +#define luaL_typerror luaL_typeerror + #endif -- cgit v1.2.3-55-g6feb