34 void* handle = ::dlopen(
nullptr, RTLD_LAZY);
35 if (
nullptr != handle) {
36 void* func = ::dlsym(handle,
"main");
37 if (
nullptr != func) {
defines a Small helper function that allows the cast from void * to function pointer
OS specific details to access at run-time the module configuration of the process.
header to get the module info statically
constexpr DESTPTR FuncPtrCast(SRC *const src_p) noexcept
Cast from void * to function pointer.
ELEMENTS_API const ModuleInfo & getThisExecutableInfo()