You can `rb_raise(rb_eNoMemError, "Out of memory")`.