Sha256: abb767c09ec63c20e9cad40902be0b574eba211677a6e7f1e3dd979bdb098216

Contents?: true

Size: 529 Bytes

Versions: 25

Compression:

Stored size: 529 Bytes

Contents

#include "Address_Registration_Guard.hpp"

bool Rice::Address_Registration_Guard::enabled = true;
bool Rice::Address_Registration_Guard::exit_handler_registered = false;

static void disable_all_guards(VALUE)
{
    Rice::Address_Registration_Guard::disable();
}

void Rice::Address_Registration_Guard::registerExitHandler()
{
    if (exit_handler_registered) return;
    rb_set_end_proc(&disable_all_guards, Qnil);
    exit_handler_registered = true;
}

void Rice::Address_Registration_Guard::disable()
{
    enabled = false;
}

Version data entries

25 entries across 25 versions & 4 rubygems

Version Path
rice-3.0.0 rice/Address_Registration_Guard.cpp
rice2-2.2.1 rice/Address_Registration_Guard.cpp
rice2-2.2.0 rice/Address_Registration_Guard.cpp
rice-2.2.0 rice/Address_Registration_Guard.cpp
rice-2.1.3 rice/Address_Registration_Guard.cpp
rice-2.1.2 rice/Address_Registration_Guard.cpp
rice-2.1.1 rice/Address_Registration_Guard.cpp
rice-2.1.0 rice/Address_Registration_Guard.cpp
rice-2.0.0 rice/Address_Registration_Guard.cpp
rice-1.7.0 rice/Address_Registration_Guard.cpp
rice-1.6.3 rice/Address_Registration_Guard.cpp
rice-1.6.2 rice/Address_Registration_Guard.cpp
rice-1.6.1 rice/Address_Registration_Guard.cpp
rice-1.6.0 rice/Address_Registration_Guard.cpp
rice-1.6.0.pre rice/Address_Registration_Guard.cpp
rice-1.5.3 rice/Address_Registration_Guard.cpp
rice-1.5.2 rice/Address_Registration_Guard.cpp
keyme-rice-1.5.1.keyme1 rice/Address_Registration_Guard.cpp
keyme-rice-1.5.1.keyme rice/Address_Registration_Guard.cpp
rice-1.5.1 rice/Address_Registration_Guard.cpp