diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-01-13 14:18:25 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-01-13 14:18:25 -0200 |
commit | 070d3743a7892ec6429000c8309b72bfb0600d19 (patch) | |
tree | 6922c5b887e36400d6d1a9971d2b831799d9a2be /lapi.c | |
parent | 0c7de97d47074b82dd08e67443e78dcee1241277 (diff) | |
download | lua-070d3743a7892ec6429000c8309b72bfb0600d19.tar.gz lua-070d3743a7892ec6429000c8309b72bfb0600d19.tar.bz2 lua-070d3743a7892ec6429000c8309b72bfb0600d19.zip |
"no value" added to array luaT_typenames + occurrences of "userdata"
in that array unified in a single address
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 2.109 2010/01/08 15:16:56 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.110 2010/01/11 17:38:30 roberto Exp roberto $ |
3 | ** Lua API | 3 | ** Lua API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -255,7 +255,7 @@ LUA_API int lua_type (lua_State *L, int idx) { | |||
255 | 255 | ||
256 | LUA_API const char *lua_typename (lua_State *L, int t) { | 256 | LUA_API const char *lua_typename (lua_State *L, int t) { |
257 | UNUSED(L); | 257 | UNUSED(L); |
258 | return (t == LUA_TNONE) ? "no value" : luaT_typenames[t]; | 258 | return typename(t); |
259 | } | 259 | } |
260 | 260 | ||
261 | 261 | ||