Skip to content

load_current_t

Alairion edited this page Jun 1, 2019 · 6 revisions

nes::load_current_t

Defined in header <nes/shared_library.hpp>

struct load_current_t{};
static constexpr load_current_t load_current{};

Description

load_current_t is the type of the disambiguation tag that can be passed to nes::shared_library constructor to load current binary as a shared library.

Constants

load_current is a constant of type load_current_t.

Example

#include <nes/shared_library.hpp>

int main()
{
    //Open current binary as a shared library.
    nes::shared_library current{nes::load_current};
}
Clone this wiki locally