GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
chaiscript_unknown.hpp
Go to the documentation of this file.
1// This file is distributed under the BSD License.
2// See "license.txt" for details.
3// Copyright 2009-2012, Jonathan Turner (jonathan@emptycrate.com)
4// Copyright 2009-2017, Jason Turner (jason@emptycrate.com)
5// http://www.chaiscript.com
6
7#ifndef CHAISCRIPT_UNKNOWN_HPP_
8#define CHAISCRIPT_UNKNOWN_HPP_
9
10
11namespace chaiscript
12{
13 namespace detail
14 {
15 struct Loadable_Module
16 {
17 Loadable_Module(const std::string &, const std::string &)
18 {
19#ifdef CHAISCRIPT_NO_DYNLOAD
20 throw chaiscript::exception::load_module_error("Loadable module support was disabled (CHAISCRIPT_NO_DYNLOAD)");
21#else
22 throw chaiscript::exception::load_module_error("Loadable module support not available for your platform");
23#endif
24 }
25
27 };
28 }
29}
30#endif
31
Classes and functions reserved for internal use. Items in this namespace are not supported.
Namespace chaiscript contains every API call that the average user will be concerned with.
std::shared_ptr< Module > ModulePtr
Convenience typedef for Module objects to be added to the ChaiScript runtime.
Definition dispatchkit.hpp:263
Definition chaiscript_posix.hpp:15
ModulePtr m_moduleptr
Definition chaiscript_posix.hpp:63
Loadable_Module(const std::string &, const std::string &)
Definition chaiscript_unknown.hpp:17
Thrown if an error occurs while attempting to load a binary module.
Definition chaiscript_common.hpp:138