Skip to content

Commit 515fd8d

Browse files
committed
feature: luajit.h: defined the macro OPENRESTY_LUAJIT for our branch of LuaJIT.
OpenResty and other projects can test this macro to utilize unique features of this LuaJIT while still keeping compatibility with the official LuaJIT.
1 parent 68d52e7 commit 515fd8d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ since we still synchronize any upstream changes all the time.
3131
We introduce our own changes which will never merge or haven't yet merged into
3232
the upstream LuaJIT (https://github.com/LuaJIT/LuaJIT), which are
3333

34+
* feature: luajit.h: defined the macro OPENRESTY_LUAJIT for our branch of
35+
LuaJIT.
36+
3437
* feature: implemented the table.clone() builtin Lua API.
3538

3639
This change only support shallow clone. e.g

src/luajit.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
#include "lua.h"
3232

33+
#define OPENRESTY_LUAJIT
34+
3335
#define LUAJIT_VERSION "LuaJIT 2.1.0-beta3"
3436
#define LUAJIT_VERSION_NUM 20100 /* Version 2.1.0 = 02.01.00. */
3537
#define LUAJIT_VERSION_SYM luaJIT_version_2_1_0_beta3

0 commit comments

Comments
 (0)