diff options
author | Philipp Janda <siffiejoe@gmx.net> | 2017-08-27 15:17:58 +0200 |
---|---|---|
committer | Philipp Janda <siffiejoe@gmx.net> | 2017-08-27 15:17:58 +0200 |
commit | aeb072066f799c87527c81b19919dfd3b55bc373 (patch) | |
tree | 5598c50644aa6b5b1a6f38ae77f6dc430512c22e /c-api/compat-5.3.h | |
parent | 30144ee397495503c42fec822957b396eb3ebcd9 (diff) | |
download | lua-compat-5.3-aeb072066f799c87527c81b19919dfd3b55bc373.tar.gz lua-compat-5.3-aeb072066f799c87527c81b19919dfd3b55bc373.tar.bz2 lua-compat-5.3-aeb072066f799c87527c81b19919dfd3b55bc373.zip |
Provide fixed luaL_tolstring for Lua 5.2 as well.
Diffstat (limited to 'c-api/compat-5.3.h')
-rw-r--r-- | c-api/compat-5.3.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/c-api/compat-5.3.h b/c-api/compat-5.3.h index ffebcd7..7bd8a56 100644 --- a/c-api/compat-5.3.h +++ b/c-api/compat-5.3.h | |||
@@ -172,9 +172,6 @@ COMPAT53_API void luaL_setmetatable (lua_State *L, const char *tname); | |||
172 | #define luaL_testudata COMPAT53_CONCAT(COMPAT53_PREFIX, L_testudata) | 172 | #define luaL_testudata COMPAT53_CONCAT(COMPAT53_PREFIX, L_testudata) |
173 | COMPAT53_API void *luaL_testudata (lua_State *L, int i, const char *tname); | 173 | COMPAT53_API void *luaL_testudata (lua_State *L, int i, const char *tname); |
174 | 174 | ||
175 | #define luaL_tolstring COMPAT53_CONCAT(COMPAT53_PREFIX, L_tolstring) | ||
176 | COMPAT53_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len); | ||
177 | |||
178 | #define luaL_traceback COMPAT53_CONCAT(COMPAT53_PREFIX, L_traceback) | 175 | #define luaL_traceback COMPAT53_CONCAT(COMPAT53_PREFIX, L_traceback) |
179 | COMPAT53_API void luaL_traceback (lua_State *L, lua_State *L1, const char *msg, int level); | 176 | COMPAT53_API void luaL_traceback (lua_State *L, lua_State *L1, const char *msg, int level); |
180 | 177 | ||
@@ -286,6 +283,9 @@ COMPAT53_API void lua_seti (lua_State *L, int index, lua_Integer i); | |||
286 | #define lua_stringtonumber COMPAT53_CONCAT(COMPAT53_PREFIX, _stringtonumber) | 283 | #define lua_stringtonumber COMPAT53_CONCAT(COMPAT53_PREFIX, _stringtonumber) |
287 | COMPAT53_API size_t lua_stringtonumber (lua_State *L, const char *s); | 284 | COMPAT53_API size_t lua_stringtonumber (lua_State *L, const char *s); |
288 | 285 | ||
286 | #define luaL_tolstring COMPAT53_CONCAT(COMPAT53_PREFIX, L_tolstring) | ||
287 | COMPAT53_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len); | ||
288 | |||
289 | #define luaL_getmetafield(L, o, e) \ | 289 | #define luaL_getmetafield(L, o, e) \ |
290 | (luaL_getmetafield(L, (o), (e)) ? lua_type(L, -1) : LUA_TNIL) | 290 | (luaL_getmetafield(L, (o), (e)) ? lua_type(L, -1) : LUA_TNIL) |
291 | 291 | ||