common.hpp 699 B

12345678910111213141516171819202122232425262728293031
  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 < 501 || LUA_VERSION_NUM >= 600
  15. #error Luwra has not been tested against your installed version of Lua
  16. #endif
  17. // Namespaces
  18. #define LUWRA_NS_BEGIN namespace luwra {
  19. #define LUWRA_NS_END }
  20. // Version MAJOR.MINOR.PATCH
  21. #define LUWRA_VERSION_MAJOR 0
  22. #define LUWRA_VERSION_MINOR 2
  23. #define LUWRA_VERSION_PATCH 0
  24. #endif