macros 'LUA_QL'/'LUA_QL' deprecated

This commit is contained in:
Roberto Ierusalimschy
2014-10-17 13:28:21 -03:00
parent ea3155e380
commit f97c64d7bf
16 changed files with 67 additions and 75 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: loslib.c,v 1.47 2014/10/01 11:54:56 roberto Exp roberto $
** $Id: loslib.c,v 1.48 2014/10/08 19:57:31 roberto Exp roberto $
** Standard Operating System library
** See Copyright Notice in lua.h
*/
@@ -189,7 +189,7 @@ static int getfield (lua_State *L, const char *key, int d) {
res = (int)lua_tointegerx(L, -1, &isnum);
if (!isnum) {
if (d < 0)
return luaL_error(L, "field " LUA_QS " missing in date table", key);
return luaL_error(L, "field '%s' missing in date table", key);
res = d;
}
lua_pop(L, 1);