Skip to content

Commit

Permalink
Make luabind compile with GCC (BOOST_PP_ITERATION_FLAGS() problem).
Browse files Browse the repository at this point in the history
I had already fixed this problem when trying to compile a project using luabind
on Ubuntu but forgot to include it until I stumbled upon
http://github.com/Kazade/luabind/commit/78509cc0242161116c989a08439ea28386deeca2
  • Loading branch information
Oberon00 committed Jun 12, 2013
1 parent ebb7918 commit 1aa80be
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion luabind/detail/call_function.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ namespace luabind

#endif // LUABIND_CALL_FUNCTION_HPP_INCLUDED

#elif BOOST_PP_ITERATION_FLAGS() == 1
#else
#if BOOST_PP_ITERATION_FLAGS() == 1

#define LUABIND_TUPLE_PARAMS(z, n, data) const A##n *
#define LUABIND_OPERATOR_PARAMS(z, n, data) const A##n & a##n
Expand Down Expand Up @@ -438,4 +439,5 @@ namespace luabind


#endif
#endif

4 changes: 3 additions & 1 deletion luabind/detail/call_member.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ namespace luabind

#endif // LUABIND_CALL_MEMBER_HPP_INCLUDED

#elif BOOST_PP_ITERATION_FLAGS() == 1
#else
#if BOOST_PP_ITERATION_FLAGS() == 1

#define LUABIND_TUPLE_PARAMS(z, n, data) const A##n *
#define LUABIND_OPERATOR_PARAMS(z, n, data) const A##n & a##n
Expand Down Expand Up @@ -360,4 +361,5 @@ namespace luabind
#undef LUABIND_TUPLE_PARAMS

#endif
#endif

4 changes: 3 additions & 1 deletion luabind/wrapper_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ namespace luabind

#endif // LUABIND_WRAPPER_BASE_HPP_INCLUDED

#elif BOOST_PP_ITERATION_FLAGS() == 1
#else
#if BOOST_PP_ITERATION_FLAGS() == 1

#define LUABIND_TUPLE_PARAMS(z, n, data) const A##n *
#define LUABIND_OPERATOR_PARAMS(z, n, data) const A##n & a##n
Expand Down Expand Up @@ -188,3 +189,4 @@ namespace luabind
#undef N

#endif
#endif

0 comments on commit 1aa80be

Please sign in to comment.