Class: Bug::VM

Inherits:
Object show all
Defined in:
ext/-test-/vm/at_exit.c

Class Method Summary collapse

Class Method Details

.register_at_exit(t) ⇒ Object



21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'ext/-test-/vm/at_exit.c', line 21

static VALUE
register_at_exit(VALUE self, VALUE t)
{
    switch (t) {
      case Qtrue:
        ruby_vm_at_exit(print_begin);
        break;
      case Qfalse:
        ruby_vm_at_exit(print_end);
        break;
      default:
        ruby_vm_at_exit(do_nothing);
        break;
    }
    return self;
}