LuaIncludes.h 483 B

123456789101112131415161718192021
  1. #pragma once
  2. // Wraps the LUA includes for platform specific build workarounds
  3. extern "C"
  4. {
  5. #include <lua.h>
  6. #include <lualib.h>
  7. #include <lauxlib.h>
  8. }
  9. #ifdef __APPLE__
  10. // Something in the Apple headers seems to #define nil as __NULL
  11. // this then causes a build error in luabind:
  12. // luabind/nil.hpp:36:40: error: expected unqualified-id
  13. // extern LUABIND_API detail::nil_type nil;
  14. #undef nil
  15. #endif
  16. #include <luabind/luabind.hpp>
  17. #include <luabind/yield_policy.hpp>