no_dependency.hpp 903 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Copyright Daniel Wallin 2010. Use, modification and distribution is
  2. // subject to the Boost Software License, Version 1.0. (See accompanying
  3. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #ifndef LUABIND_NO_DEPENDENCY_100324_HPP
  5. # define LUABIND_NO_DEPENDENCY_100324_HPP
  6. # include <luabind/detail/policy.hpp>
  7. namespace luabind {
  8. namespace detail
  9. {
  10. struct no_dependency_policy
  11. {
  12. static void precall(lua_State*, index_map const&)
  13. {}
  14. static void postcall(lua_State*, index_map const&)
  15. {}
  16. };
  17. typedef policy_cons<no_dependency_policy, null_type>
  18. no_dependency_node;
  19. } // namespace detail
  20. detail::no_dependency_node const no_dependency = {};
  21. namespace detail
  22. {
  23. inline void ignore_unused_no_dependency()
  24. {
  25. (void)no_dependency;
  26. }
  27. } // namespace detail
  28. } // namespace luabind
  29. #endif // LUABIND_NO_DEPENDENCY_100324_HPP