config.d 619 B

1234567891011121314151617181920212223242526272829
  1. // Copyright 2019 - 2021 Michael D. Parker
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. module bindbc.lua.config;
  6. enum LuaSupport {
  7. noLibrary,
  8. badLibrary,
  9. lua51 = 51,
  10. lua52 = 52,
  11. lua53 = 53,
  12. lua54 = 54,
  13. }
  14. version(LUA_54) {
  15. enum luaSupport = LuaSupport.lua54;
  16. }
  17. else version(LUA_53) {
  18. enum luaSupport = LuaSupport.lua53;
  19. }
  20. else version(LUA_52) {
  21. enum luaSupport = LuaSupport.lua52;
  22. }
  23. else version(LUA_51) {
  24. enum luaSupport = LuaSupport.lua51;
  25. }