new macro `luaL_typename'

This commit is contained in:
Roberto Ierusalimschy
2004-07-09 15:23:17 -03:00
parent 76d8b8db06
commit 7a796a0682
4 changed files with 8 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lauxlib.c,v 1.118 2004/06/29 16:57:56 roberto Exp roberto $
** $Id: lauxlib.c,v 1.119 2004/07/01 14:26:28 roberto Exp roberto $
** Auxiliary functions for building Lua libraries
** See Copyright Notice in lua.h
*/
@@ -63,7 +63,7 @@ LUALIB_API int luaL_argerror (lua_State *L, int narg, const char *extramsg) {
LUALIB_API int luaL_typerror (lua_State *L, int narg, const char *tname) {
const char *msg = lua_pushfstring(L, "%s expected, got %s",
tname, lua_typename(L, lua_type(L,narg)));
tname, luaL_typename(L, narg));
return luaL_argerror(L, narg, msg);
}