diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-07-09 15:23:17 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-07-09 15:23:17 -0300 |
| commit | 7a796a0682e8d0a4e3798955f5db64255d9bd44d (patch) | |
| tree | bf7c79070525af27e11d494fd3c98f15bf1eee0d /lauxlib.c | |
| parent | 76d8b8db06f7ae23da1543e1bf0a195d92b633a9 (diff) | |
| download | lua-7a796a0682e8d0a4e3798955f5db64255d9bd44d.tar.gz lua-7a796a0682e8d0a4e3798955f5db64255d9bd44d.tar.bz2 lua-7a796a0682e8d0a4e3798955f5db64255d9bd44d.zip | |
new macro `luaL_typename'
Diffstat (limited to 'lauxlib.c')
| -rw-r--r-- | lauxlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lauxlib.c,v 1.118 2004/06/29 16:57:56 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.119 2004/07/01 14:26:28 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 | */ |
| @@ -63,7 +63,7 @@ LUALIB_API int luaL_argerror (lua_State *L, int narg, const char *extramsg) { | |||
| 63 | 63 | ||
| 64 | LUALIB_API int luaL_typerror (lua_State *L, int narg, const char *tname) { | 64 | LUALIB_API int luaL_typerror (lua_State *L, int narg, const char *tname) { |
| 65 | const char *msg = lua_pushfstring(L, "%s expected, got %s", | 65 | const char *msg = lua_pushfstring(L, "%s expected, got %s", |
| 66 | tname, lua_typename(L, lua_type(L,narg))); | 66 | tname, luaL_typename(L, narg)); |
| 67 | return luaL_argerror(L, narg, msg); | 67 | return luaL_argerror(L, narg, msg); |
| 68 | } | 68 | } |
| 69 | 69 | ||
