summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pdynlib.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@users.noreply.github.com>2022-05-29 18:30:25 +0200
committer GitHub <noreply@github.com>2022-05-30 02:30:25 +1000
commit5155e51bbe24d0cc45a84ddb66138f83ff1810cf (patch)
tree80e3f8bcf6b39c8a06e3a6d6ba59c9f45de1449d /src/lib/netlist/plib/pdynlib.cpp
parentbfc1c9cd01aeb286357a88259f9bd360ef792348 (diff)
netlist: static solver work and improve code readability (#9841)
- nltool: Added support for building individual static solver files. - Added pre-built documentation files for nltool and nlwav. - plib: Extended typed_version to have patchlevel as well. - plib: Compile more of ppmf.h with nvcc. - create_devinc.py: Add include guards to the generated files. - makefile: Recreate generated files when python code has changed. - Reduced nld_base.h usage in the core. - <oved extern template class declarations to where they belong. - Generally improved code readability and fixed a lot of issues cspell reported.
Diffstat (limited to 'src/lib/netlist/plib/pdynlib.cpp')
-rw-r--r--src/lib/netlist/plib/pdynlib.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/netlist/plib/pdynlib.cpp b/src/lib/netlist/plib/pdynlib.cpp
index e3883937b69..cdc25dc71b4 100644
--- a/src/lib/netlist/plib/pdynlib.cpp
+++ b/src/lib/netlist/plib/pdynlib.cpp
@@ -16,7 +16,7 @@ namespace plib
using winapi_string = std::conditional<compile_info::unicode::value,
pwstring, pu8string>::type;
-dynlib::dynlib(const pstring &libname)
+dynamic_library::dynamic_library(const pstring &libname)
: m_lib(nullptr)
{
#ifdef _WIN32
@@ -40,7 +40,7 @@ dynlib::dynlib(const pstring &libname)
// printf("library <%s> not found: %s\n", libname.c_str(), dlerror());
}
-dynlib::dynlib([[maybe_unused]] const pstring &path, const pstring &libname)
+dynamic_library::dynamic_library([[maybe_unused]] const pstring &path, const pstring &libname)
: m_lib(nullptr)
{
// FIXME: implement path search
@@ -67,7 +67,7 @@ dynlib::dynlib([[maybe_unused]] const pstring &path, const pstring &libname)
}
}
-dynlib::~dynlib()
+dynamic_library::~dynamic_library()
{
if (m_lib != nullptr)
{
@@ -79,7 +79,7 @@ dynlib::~dynlib()
}
}
-void *dynlib::getsym_p(const pstring &name) const noexcept
+void *dynamic_library::get_symbol_pointer(const pstring &name) const noexcept
{
#ifdef _WIN32
return (void *) GetProcAddress((HMODULE) m_lib, putf8string(name).c_str());