37 void* handle = ::dlopen(
nullptr, RTLD_LAZY);
38 if (
nullptr != handle) {
39 void* func = ::dlsym(handle,
"main");
40 if (
nullptr != func) {
41 this_module =
ModuleInfo(FuncPtrCast<void*>(func));
ELEMENTS_API const ModuleInfo & getThisExecutableInfo()
defines a Small helper function that allows the cast from void * to function pointer ...
header to get the module info statically
OS specific details to access at run-time the module configuration of the process.