Sha256: 2936a580da37855d0c7d3d61340bea21b0efdb71508616feea9896197e819b24
Contents?: true
Size: 397 Bytes
Versions: 3
Compression:
Stored size: 397 Bytes
Contents
#include <stdlib.h> #include "mruby.h" static mrb_value f_exit(mrb_state *mrb, mrb_value self) { mrb_int i = EXIT_SUCCESS; mrb_get_args(mrb, "|i", &i); exit(i); /* not reached */ return mrb_nil_value(); } void mrb_mruby_exit_gem_init(mrb_state* mrb) { mrb_define_method(mrb, mrb->kernel_module, "exit", f_exit, MRB_ARGS_OPT(1)); } void mrb_mruby_exit_gem_final(mrb_state* mrb) { }
Version data entries
3 entries across 3 versions & 1 rubygems