Sha256: 93fb02ebbf87d81a5b2b241cbdbcd0472c560e52f0f90cd8082e80a0e6a14edb

Contents?: true

Size: 1.06 KB

Versions: 4

Compression:

Stored size: 1.06 KB

Contents

#include <ruby.h>

extern void rb_raise_runtime_error(void* rb, const char* msg) {

  rb_raise(rb_eRuntimeError, msg);

}

extern void rb_raise_type_error(void* rb, const char* msg) {

  rb_raise(rb_eTypeError, msg);

}

extern void rb_raise_argument_error(void* rb, const char* msg) {

  rb_raise(rb_eArgError, msg);

}

extern void rb_raise_index_error(void* rb, const char* msg) {

  rb_raise(rb_eIndexError, msg);

}

extern void rb_raise_range_error(void* rb, const char* msg) {

  rb_raise(rb_eRangeError, msg);

}

extern void rb_raise_name_error(void* rb, const char* msg) {

  rb_raise(rb_eNameError, msg);

}

extern void rb_raise_script_error(void* rb, const char* msg) {

  rb_raise(rb_eScriptError, msg);

}

extern void rb_raise_not_implemented_error(void* rb, const char* msg) {

  rb_raise(rb_eNotImpError, msg);

}

extern void rb_raise_key_error(void* rb, const char* msg) {

  rb_raise(rb_eKeyError, msg);

}

extern void rb_raise_helper(void* rb, VALUE exc, const char* msg) {

  rb_raise(exc, msg);

}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
polycrystal-0.1.3 ext/polycrystal/error_helper.c
polycrystal-0.1.2 ext/polycrystal/error_helper.c
polycrystal-0.1.1 ext/polycrystal/error_helper.c
polycrystal-0.1.0-x86_64-darwin-21 ext/polycrystal/error_helper.c