Sha256: 73717f6275fce6282050c9352831e8dc070bcc5e44db7004ecaf2bbf5c4d314c
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 Bytes
Contents
/* error.c */ #include "rbpod.h" #include "error.h" inline VALUE rbpod_raise_error(GError *error) { VALUE error_message; if (error != NULL) { error_message = rb_str_new2(error->message); g_error_free(error); rb_raise(eRbPodError, "%s", StringValueCStr(error_message)); } return Qnil; } void Init_rbpod_error(void) { #if RDOC_CAN_PARSE_DOCUMENTATION mRbPod = rb_define_module("RbPod"); #endif /* This is a generic subclass of RuntimeError for RbPod-specific errors.*/ eRbPodError = rb_define_class_under(mRbPod, "Error", rb_eRuntimeError); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rbpod-0.0.5 | ext/rbpod/error.c |