Changelog
- feat:
has_symbol
function
- feat:
operator bool()
- feat: Valgrind CI
Examples
has_symbol
void dylib_symbol_example(const dylib &lib)
{
if (lib.has_symbol("GetModule"))
std::cout << "GetModule has been found" << std::endl;
else
std::cout << "Could not found GetModule symbol" << std::endl;
}
operator bool()
void dylib_status_example(const dylib &lib)
{
if (lib)
std::cout << "something is curently loaded in the dylib object" << std::endl;
if (!lib)
std::cout << "nothing is curently loaded in the dylib object" << std::endl;
}