Skip to content

1.8.0

Compare
Choose a tag to compare
@martin-olivier martin-olivier released this 06 Feb 23:56
· 28 commits to main since this release
48f3a78

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;
}