chaiscript_unknown.hpp 794 B

12345678910111213141516171819202122232425262728293031
  1. // This file is distributed under the BSD License.
  2. // See "license.txt" for details.
  3. // Copyright 2009-2012, Jonathan Turner ([email protected])
  4. // Copyright 2009-2017, Jason Turner ([email protected])
  5. // http://www.chaiscript.com
  6. #ifndef CHAISCRIPT_UNKNOWN_HPP_
  7. #define CHAISCRIPT_UNKNOWN_HPP_
  8. namespace chaiscript
  9. {
  10. namespace detail
  11. {
  12. struct Loadable_Module
  13. {
  14. Loadable_Module(const std::string &, const std::string &)
  15. {
  16. #ifdef CHAISCRIPT_NO_DYNLOAD
  17. throw chaiscript::exception::load_module_error("Loadable module support was disabled (CHAISCRIPT_NO_DYNLOAD)");
  18. #else
  19. throw chaiscript::exception::load_module_error("Loadable module support not available for your platform");
  20. #endif
  21. }
  22. ModulePtr m_moduleptr;
  23. };
  24. }
  25. }
  26. #endif