diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-17 13:28:21 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-17 13:28:21 -0300 |
| commit | f97c64d7bf4c0f373711795d8faba0e8cd206761 (patch) | |
| tree | 99c9e25132b2ef193dc417873e8f44e5c0ea8738 /ltablib.c | |
| parent | ea3155e380080095a6f8c63297f0505789cf08b7 (diff) | |
| download | lua-f97c64d7bf4c0f373711795d8faba0e8cd206761.tar.gz lua-f97c64d7bf4c0f373711795d8faba0e8cd206761.tar.bz2 lua-f97c64d7bf4c0f373711795d8faba0e8cd206761.zip | |
macros 'LUA_QL'/'LUA_QL' deprecated
Diffstat (limited to 'ltablib.c')
| -rw-r--r-- | ltablib.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltablib.c,v 1.75 2014/08/21 20:07:56 roberto Exp roberto $ | 2 | ** $Id: ltablib.c,v 1.76 2014/09/22 06:42:15 roberto Exp roberto $ |
| 3 | ** Library for Table Manipulation | 3 | ** Library for Table Manipulation |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -91,7 +91,7 @@ static int tinsert (lua_State *L) { | |||
| 91 | break; | 91 | break; |
| 92 | } | 92 | } |
| 93 | default: { | 93 | default: { |
| 94 | return luaL_error(L, "wrong number of arguments to " LUA_QL("insert")); | 94 | return luaL_error(L, "wrong number of arguments to 'insert'"); |
| 95 | } | 95 | } |
| 96 | } | 96 | } |
| 97 | (*ta.seti)(L, 1, pos); /* t[pos] = v */ | 97 | (*ta.seti)(L, 1, pos); /* t[pos] = v */ |
| @@ -154,8 +154,8 @@ static int tmove (lua_State *L) { | |||
| 154 | static void addfield (lua_State *L, luaL_Buffer *b, TabA *ta, lua_Integer i) { | 154 | static void addfield (lua_State *L, luaL_Buffer *b, TabA *ta, lua_Integer i) { |
| 155 | (*ta->geti)(L, 1, i); | 155 | (*ta->geti)(L, 1, i); |
| 156 | if (!lua_isstring(L, -1)) | 156 | if (!lua_isstring(L, -1)) |
| 157 | luaL_error(L, "invalid value (%s) at index %d in table for " | 157 | luaL_error(L, "invalid value (%s) at index %d in table for 'concat'", |
| 158 | LUA_QL("concat"), luaL_typename(L, -1), i); | 158 | luaL_typename(L, -1), i); |
| 159 | luaL_addvalue(b); | 159 | luaL_addvalue(b); |
| 160 | } | 160 | } |
| 161 | 161 | ||
