common.h 570 B

1234567891011121314151617181920212223242526
  1. /* Luwra
  2. * Minimal-overhead Lua wrapper for C++
  3. *
  4. * Copyright (C) 2015, Ole Krüger <ole@vprsm.de>
  5. */
  6. #ifndef LUWRA_COMMON_H_
  7. #define LUWRA_COMMON_H_
  8. // Check C++ version
  9. #if !defined(__cplusplus) || __cplusplus < 201402L
  10. #error "You need a C++14 compliant compiler"
  11. #endif
  12. #include <lua.hpp>
  13. // Check for proper Lua version
  14. #if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 503 || LUA_VERSION_NUM >= 600
  15. #error "Luwra has not been tested against your installed version of Lua"
  16. #endif
  17. #define LUWRA_NS_BEGIN namespace luwra {
  18. #define LUWRA_NS_END }
  19. #endif