|
|
@ -16,9 +16,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "stdpch.h"
|
|
|
|
#include "stdpch.h"
|
|
|
|
|
|
|
|
#include "lua_helper.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include <algorithm>
|
|
|
|
#include <algorithm>
|
|
|
|
|
|
|
|
|
|
|
|
#include "lua_helper.h"
|
|
|
|
// to get rid of you_must_not_use_assert___use_nl_assert___read_debug_h_file messages
|
|
|
|
|
|
|
|
#include <cassert>
|
|
|
|
|
|
|
|
#ifdef assert
|
|
|
|
|
|
|
|
#undef assert
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// Warning: cannot use namespace std, when using luabind
|
|
|
|
// Warning: cannot use namespace std, when using luabind
|
|
|
|
#ifdef NL_OS_WINDOWS
|
|
|
|
#ifdef NL_OS_WINDOWS
|
|
|
|
# ifndef NL_EXTENDED_FOR_SCOPE
|
|
|
|
# ifndef NL_EXTENDED_FOR_SCOPE
|
|
|
@ -26,32 +33,29 @@
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// to get rid of you_must_not_use_assert___use_nl_assert___read_debug_h_file messages
|
|
|
|
|
|
|
|
#include <cassert>
|
|
|
|
|
|
|
|
#ifdef assert
|
|
|
|
|
|
|
|
#undef assert
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef NL_DEBUG
|
|
|
|
#ifdef NL_DEBUG
|
|
|
|
#define assert(x) nlassert(x)
|
|
|
|
# define assert(x) nlassert(x)
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#define assert(x)
|
|
|
|
# define assert(x)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#include <luabind/luabind.hpp>
|
|
|
|
#include <luabind/luabind.hpp>
|
|
|
|
// in luabind > 0.6, LUABIND_MAX_ARITY is set to 10
|
|
|
|
// in luabind > 0.6, LUABIND_MAX_ARITY is set to 10
|
|
|
|
#if LUABIND_MAX_ARITY == 10
|
|
|
|
#if LUABIND_MAX_ARITY == 10
|
|
|
|
# include <luabind/operator.hpp>
|
|
|
|
# include <luabind/operator.hpp>
|
|
|
|
# include <luabind/version.hpp>
|
|
|
|
// only luabind > 0.7 have version.hpp (file checked with build system)
|
|
|
|
# ifndef LUABIND_VERSION
|
|
|
|
# ifdef HAVE_LUABIND_VERSION
|
|
|
|
|
|
|
|
# include <luabind/version.hpp>
|
|
|
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
# ifndef LUABIND_VERSION
|
|
|
|
// luabind 0.7 doesn't define LUABIND_VERSION
|
|
|
|
// luabind 0.7 doesn't define LUABIND_VERSION
|
|
|
|
# define LUABIND_VERSION 700
|
|
|
|
# define LUABIND_VERSION 700
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
// luabind 0.6 doesn't define LUABIND_VERSION but LUABIND_MAX_ARITY is set to 5
|
|
|
|
// luabind 0.6 doesn't define LUABIND_VERSION but LUABIND_MAX_ARITY is set to 5
|
|
|
|
#elif LUABIND_MAX_ARITY == 5
|
|
|
|
#elif LUABIND_MAX_ARITY == 5
|
|
|
|
# define LUABIND_VERSION 600
|
|
|
|
# define LUABIND_VERSION 600
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
# pragma error("luabind version not recognized")
|
|
|
|
# pragma error("luabind version not recognized")
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|