aboutsummaryrefslogtreecommitdiff
path: root/c-api/compat-5.3.c
diff options
context:
space:
mode:
authorPhilipp Janda <siffiejoe@gmx.net>2017-08-07 20:22:18 +0200
committerPhilipp Janda <siffiejoe@gmx.net>2017-08-07 20:22:18 +0200
commitf608371c71644f5db60a3c83b2c7a44f1eb30eea (patch)
treec98a08855a0006843772e57a68c1b6dd30a8a419 /c-api/compat-5.3.c
parent8b2d71e601d1b9695aea084bb5bf7aa7dc0ca230 (diff)
downloadlua-compat-5.3-f608371c71644f5db60a3c83b2c7a44f1eb30eea.tar.gz
lua-compat-5.3-f608371c71644f5db60a3c83b2c7a44f1eb30eea.tar.bz2
lua-compat-5.3-f608371c71644f5db60a3c83b2c7a44f1eb30eea.zip
Fix compilation issues with recent LuaJIT 2.1.
Protect macros with `#ifndef`. Use "compat53" prefix instead of "lua" prefix for the mode where static versions of the C API functions are created. Fixes #19.
Diffstat (limited to 'c-api/compat-5.3.c')
-rw-r--r--c-api/compat-5.3.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/c-api/compat-5.3.c b/c-api/compat-5.3.c
index d7d127f..b913196 100644
--- a/c-api/compat-5.3.c
+++ b/c-api/compat-5.3.c
@@ -263,7 +263,6 @@ COMPAT53_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) {
263} 263}
264 264
265 265
266#if !defined(COMPAT53_IS_LUAJIT)
267static int compat53_countlevels (lua_State *L) { 266static int compat53_countlevels (lua_State *L) {
268 lua_Debug ar; 267 lua_Debug ar;
269 int li = 1, le = 1; 268 int li = 1, le = 1;
@@ -418,7 +417,6 @@ COMPAT53_API int luaL_execresult (lua_State *L, int stat) {
418 return 3; 417 return 3;
419 } 418 }
420} 419}
421#endif /* not COMPAT53_IS_LUAJIT */
422 420
423 421
424COMPAT53_API void luaL_buffinit (lua_State *L, luaL_Buffer_53 *B) { 422COMPAT53_API void luaL_buffinit (lua_State *L, luaL_Buffer_53 *B) {