LuaIncludes.h 545 B

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