compat-5.4.h 593 B

12345678910111213141516171819202122232425
  1. #ifndef NOT_KEPLER_PROJECT_COMPAT54_H_
  2. #define NOT_KEPLER_PROJECT_COMPAT54_H_
  3. #if defined(__cplusplus) && !defined(COMPAT53_LUA_CPP)
  4. extern "C" {
  5. #endif
  6. #include <lua.h>
  7. #include <lauxlib.h>
  8. #include <lualib.h>
  9. #if defined(__cplusplus) && !defined(COMPAT53_LUA_CPP)
  10. }
  11. #endif
  12. #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM == 504
  13. #if !defined(LUA_ERRGCMM)
  14. /* So Lua 5.4 actually removes this, which breaks sol2...
  15. man, this API is quite unstable...!
  16. */
  17. # define LUA_ERRGCMM (LUA_ERRERR + 2)
  18. #endif /* LUA_ERRGCMM define */
  19. #endif // Lua 5.4 only
  20. #endif // NOT_KEPLER_PROJECT_COMPAT54_H_