Skip to content
Snippets Groups Projects
Commit cfd0a84c authored by Petr Špaček's avatar Petr Špaček
Browse files

Merge branch 'luajit-includes' into 'master'

luajit includes

Closes #570

See merge request !996
parents 6f7701f3 0b495b62
No related branches found
No related tags found
1 merge request!996luajit includes
Pipeline #63349 passed
......@@ -9,9 +9,8 @@
#include <lua.h>
#include <lauxlib.h>
/* It may happen that include files are messed up and we're hitting a header
* e.g. from Lua 5.2 or 5.3. Header from 5.1 should work OK, and it's more difficult
* to differentiate from a luajit one. */
#if LUA_VERSION_NUM != 501
* e.g. from vanilla Lua. Even 5.1 won't work due to missing luaL_traceback() in <lauxlib.h>. */
#if (LUA_VERSION_NUM) != 501 || !defined(LUA_LJDIR)
#error "Incorrect Lua version in #include <lua.h> - LuaJIT compatible with Lua 5.1 is required"
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment