Sha256: 7d589537cd163202d61edf45f19242e46bca96485b2f1c5f83053aa2d31d7b8e
Contents?: true
Size: 968 Bytes
Versions: 36
Compression:
Stored size: 968 Bytes
Contents
// -*- c++ -*- #include "rucy/rucy.h" #include "rucy/exception.h" namespace Rucy { void init () { static bool done = false; if (done) return; done = true; rucy_module(); native_error_class(); invalid_state_error_class(); invalid_object_error_class(); system_error_class(); } Module rucy_module () { static Module m = define_module("Rucy"); return m; } Class native_error_class () { static Class c = rucy_module().define_class("NativeError", rb_eRuntimeError); return c; } Class invalid_state_error_class () { static Class c = rucy_module().define_class("InvalidStateError", native_error_class()); return c; } Class invalid_object_error_class () { static Class c = rucy_module().define_class("InvalidObjectError", native_error_class()); return c; } Class system_error_class () { static Class c = rucy_module().define_class("SystemError", native_error_class()); return c; } }// Rucy
Version data entries
36 entries across 36 versions & 1 rubygems