From 4aff84ebb797ca29e1594564bee83bae30df8ec6 Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Fri, 7 Jun 2024 17:30:14 +0200 Subject: [PATCH] whitespace --- src/pybind/pyembed.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/pybind/pyembed.cpp b/src/pybind/pyembed.cpp index bd0c9c5fc..593bc750d 100644 --- a/src/pybind/pyembed.cpp +++ b/src/pybind/pyembed.cpp @@ -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 } @@ -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) {