Merge pull request #304 from davedissian/develop

Correct the LuaJIT 2.1.0 condition
This commit is contained in:
The Phantom Derpstorm 2016-12-26 14:01:08 -05:00 committed by GitHub
commit a2691c6570

View File

@ -158,7 +158,7 @@ inline const char* kepler_lua_compat_get_string(lua_State* L, void* ud, size_t*
return ls->s;
}
#if !defined(SOL_LUAJIT) || ((SOL_LUAJIT_VERSION - 20100) <= 0)
#if !defined(SOL_LUAJIT) || (SOL_LUAJIT_VERSION < 20100)
// Luajit 2.1.0 has this function already
inline int luaL_loadbufferx(lua_State* L, const char* buff, size_t size, const char* name, const char*) {
@ -172,4 +172,4 @@ inline int luaL_loadbufferx(lua_State* L, const char* buff, size_t size, const c
#endif /* Lua 5.1 */
#endif // SOL_5_1_0_H
#endif // SOL_5_1_0_H