7#ifndef CHAISCRIPT_POSIX_HPP_
8#define CHAISCRIPT_POSIX_HPP_
18 explicit DLModule(
const std::string &t_filename)
19 :
m_data(dlopen(t_filename.c_str(), RTLD_NOW))
44 :
m_symbol(reinterpret_cast<
T>(dlsym(t_mod.m_data, t_symbol.c_str())))
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:17
~DLModule()
Definition chaiscript_posix.hpp:32
DLModule(const DLModule &)=delete
DLModule(DLModule &&)=default
void * m_data
Definition chaiscript_posix.hpp:37
DLModule & operator=(const DLModule &)=delete
DLModule & operator=(DLModule &&)=default
DLModule(const std::string &t_filename)
Definition chaiscript_posix.hpp:18
Definition chaiscript_posix.hpp:42
DLSym(DLModule &t_mod, const std::string &t_symbol)
Definition chaiscript_posix.hpp:43
T m_symbol
Definition chaiscript_posix.hpp:52
DLModule m_dlmodule
Definition chaiscript_posix.hpp:61
ModulePtr m_moduleptr
Definition chaiscript_posix.hpp:63
Loadable_Module(const std::string &t_module_name, const std::string &t_filename)
Definition chaiscript_posix.hpp:55
DLSym< Create_Module_Func > m_func
Definition chaiscript_posix.hpp:62
Thrown if an error occurs while attempting to load a binary module.
Definition chaiscript_common.hpp:138