mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-21 00:18:43 +00:00
Fixed: #918 Luabind 0.7 is not correctly detected
This commit is contained in:
parent
e45b1e9461
commit
d92f993af8
1 changed files with 7 additions and 1 deletions
|
@ -31,9 +31,15 @@
|
|||
#undef assert
|
||||
#define assert nlassert
|
||||
#include <luabind/luabind.hpp>
|
||||
// in luabind > 0.6, LUABIND_MAX_ARITY is set to 10
|
||||
#if LUABIND_MAX_ARITY == 10
|
||||
# include <luabind/version.hpp>
|
||||
# include <luabind/operator.hpp>
|
||||
# include <luabind/version.hpp>
|
||||
# ifndef LUABIND_VERSION
|
||||
// luabind 0.7 doesn't define LUABIND_VERSION
|
||||
# define LUABIND_VERSION 700
|
||||
# endif
|
||||
// luabind 0.6 doesn't define LUABIND_VERSION but LUABIND_MAX_ARITY is set to 5
|
||||
#elif LUABIND_MAX_ARITY == 5
|
||||
# define LUABIND_VERSION 600
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue