Releases: abin-z/DynamicLibLoader
Releases · abin-z/DynamicLibLoader
v0.9.2
Release version 0.9.2
Key Features:
- Cross-platform support: Compatible with Windows and POSIX (Linux/macOS).
- RAII Resource Management: Loads the library on construction and unloads it on destruction.
- Error Handling: Throws detailed
std::runtime_error
exceptions with platform-specific error messages when failing to load the library or symbols. - Symbol Caching:
invoke()
supports symbol caching for improved efficiency. - Cached and Uncached Interfaces: Use
invoke()
(cached) orinvoke_uncached()
(non-cached). - No Dependencies: Relies solely on the standard library.
主要特性:
- 跨平台支持:兼容 Windows 和 POSIX(Linux/macOS)。
- RAII 资源管理:在构造时加载库,并在析构时卸载。
- 错误处理:当加载库或符号失败时,抛出详细的
std::runtime_error
异常,并附带平台特定的错误消息。 - 符号缓存:
invoke()
支持符号缓存,以提高效率。 - 缓存和非缓存接口:使用
invoke()
(缓存)或invoke_uncached()
(非缓存)。 - 无依赖:仅依赖于标准库。