Skip to content

Commit

Permalink
feature: luajit.h: defined the macro OPENRESTY_LUAJIT for our branch …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
agentzh committed Jun 14, 2018
1 parent 68d52e7 commit 515fd8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ since we still synchronize any upstream changes all the time.
We introduce our own changes which will never merge or haven't yet merged into
the upstream LuaJIT (https://github.com/LuaJIT/LuaJIT), which are

* feature: luajit.h: defined the macro OPENRESTY_LUAJIT for our branch of
LuaJIT.

* feature: implemented the table.clone() builtin Lua API.

This change only support shallow clone. e.g
Expand Down
2 changes: 2 additions & 0 deletions src/luajit.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@

#include "lua.h"

#define OPENRESTY_LUAJIT

#define LUAJIT_VERSION "LuaJIT 2.1.0-beta3"
#define LUAJIT_VERSION_NUM 20100 /* Version 2.1.0 = 02.01.00. */
#define LUAJIT_VERSION_SYM luaJIT_version_2_1_0_beta3
Expand Down

0 comments on commit 515fd8d

Please sign in to comment.