diff options
Diffstat (limited to 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.c,v 1.24 1999/12/28 11:52:49 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.25 2000/01/19 12:00:45 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 | */ |
@@ -42,11 +42,11 @@ void luaL_argerror (lua_State *L, int narg, const char *extramsg) { | |||
42 | } | 42 | } |
43 | 43 | ||
44 | 44 | ||
45 | static void type_error (lua_State *L, int narg, const char *typename, | 45 | static void type_error (lua_State *L, int narg, const char *type_name, |
46 | lua_Object o) { | 46 | lua_Object o) { |
47 | char buff[100]; | 47 | char buff[100]; |
48 | const char *otype = (o == LUA_NOOBJECT) ? "no value" : lua_type(L, o); | 48 | const char *otype = (o == LUA_NOOBJECT) ? "no value" : lua_type(L, o); |
49 | sprintf(buff, "%.10s expected, got %.10s", typename, otype); | 49 | sprintf(buff, "%.10s expected, got %.10s", type_name, otype); |
50 | luaL_argerror(L, narg, buff); | 50 | luaL_argerror(L, narg, buff); |
51 | } | 51 | } |
52 | 52 | ||