File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 22#include "lualib.h"
33#include "lauxlib.h"
44
5- #if !defined(LUA_VERSION_NUM ) || LUA_VERSION_NUM == 501
5+ /* PUC-Rio Lua uses lconfig_h as include guard for luaconf.h,
6+ * LuaJIT uses luaconf_h. If you use PUC-Rio's include files
7+ * but LuaJIT's library, you will need to define the macro
8+ * COMPAT52_IS_LUAJIT yourself! */
9+ #if !defined(COMPAT52_IS_LUAJIT ) && defined(luaconf_h )
10+ #define COMPAT52_IS_LUAJIT
11+ #endif
12+
13+ #if !defined(LUA_VERSION_NUM ) || (LUA_VERSION_NUM == 501 && !defined(COMPAT52_IS_LUAJIT ))
614
715static int
816countlevels (lua_State * L ) {
Original file line number Diff line number Diff line change 11#ifndef LUZER_COMPAT_H_
22#define LUZER_COMPAT_H_
33
4+ #if !defined(LUA_VERSION_NUM ) || (LUA_VERSION_NUM == 501 && !defined(COMPAT52_IS_LUAJIT ))
5+
46void luaL_traceback (lua_State * L , lua_State * L1 ,
57 const char * msg , int level );
68
9+ #endif
10+
711#endif // LUZER_COMPAT_H_
You can’t perform that action at this time.
0 commit comments