aboutsummaryrefslogtreecommitdiff
path: root/src/lj_arch.h
diff options
context:
space:
mode:
authorMike Pall <mike>2012-09-12 11:20:47 +0200
committerMike Pall <mike>2012-09-12 11:20:47 +0200
commit23932a6c8b7ef434bc963139b4160b1058fa6f7f (patch)
tree37a8396d51de634046efe72bff36d9a6fb1324c4 /src/lj_arch.h
parent039bf85e2610927119254b9c922eab484820e6a7 (diff)
downloadluajit-23932a6c8b7ef434bc963139b4160b1058fa6f7f.tar.gz
luajit-23932a6c8b7ef434bc963139b4160b1058fa6f7f.tar.bz2
luajit-23932a6c8b7ef434bc963139b4160b1058fa6f7f.zip
Use 0/1 macro for Lua 5.2 compatibility.
Diffstat (limited to 'src/lj_arch.h')
-rw-r--r--src/lj_arch.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lj_arch.h b/src/lj_arch.h
index a2032821..4df3e8d2 100644
--- a/src/lj_arch.h
+++ b/src/lj_arch.h
@@ -400,4 +400,11 @@
400#define LJ_NO_UNWIND 1 400#define LJ_NO_UNWIND 1
401#endif 401#endif
402 402
403/* Compatibility with Lua 5.1 vs. 5.2. */
404#ifdef LUAJIT_ENABLE_LUA52COMPAT
405#define LJ_52 1
406#else
407#define LJ_52 0
408#endif
409
403#endif 410#endif