Skip to content
Permalink
Browse files

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.
  • Loading branch information...
agentzh committed Jun 14, 2018
1 parent 68d52e7 commit 515fd8d1682caf1f0516ddcb33f97b1ae5b02590
Showing with 5 additions and 0 deletions.
  1. +3 −0 README
  2. +2 −0 src/luajit.h
3 README
@@ -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
@@ -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

0 comments on commit 515fd8d

Please sign in to comment.
You can’t perform that action at this time.