Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed Jun 7, 2024
1 parent 0eae25a commit 4aff84e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/pybind/pyembed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ bool EmbeddedPythonLoader::have_wrappers() {
#if defined(NMODL_STATIC_PYWRAPPER)
auto* init = &nmodl_init_pybind_wrapper_api;
#else
auto* init = (nmodl_init_pybind_wrapper_api_fpointer)(dlsym(RTLD_DEFAULT, "nmodl_init_pybind_wrapper_api"));
auto* init = (nmodl_init_pybind_wrapper_api_fpointer) (dlsym(RTLD_DEFAULT,
"nmodl_init_pybind_wrapper_api"));
#endif

if (init != nullptr) {
wrappers = init(required_version);
}
else {
} else {
#if defined(NMODL_STATIC_PYWRAPPER)
std::cout << "EmbeddedPythonLoader::have_wrappers -- failed dlsym : bad" << std::endl;
std::cout << "EmbeddedPythonLoader::have_wrappers -- failed dlsym : bad" << std::endl;
#else
std::cout << "EmbeddedPythonLoader::have_wrappers -- failed dlsym : fine" << std::endl;
std::cout << "EmbeddedPythonLoader::have_wrappers -- failed dlsym : fine" << std::endl;
#endif
}

Expand Down Expand Up @@ -93,7 +93,8 @@ void EmbeddedPythonLoader::populate_symbols() {
auto* init = &nmodl_init_pybind_wrapper_api;
#else
// By now it's been dynamically loaded with `RTLD_GLOBAL`.
auto* init = (nmodl_init_pybind_wrapper_api_fpointer)(dlsym(RTLD_DEFAULT, "nmodl_init_pybind_wrapper_api"));
auto* init = (nmodl_init_pybind_wrapper_api_fpointer) (dlsym(RTLD_DEFAULT,
"nmodl_init_pybind_wrapper_api"));
#endif

if (!init) {
Expand Down

0 comments on commit 4aff84e

Please sign in to comment.