mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Merge pull request #304 from davedissian/develop
Correct the LuaJIT 2.1.0 condition
This commit is contained in:
commit
a2691c6570
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user