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