Feature #5650 ยป rb_enc_raise.patch
error.c | ||
---|---|---|
}
|
||
void
|
||
rb_enc_raise(rb_encoding *enc, VALUE exc, const char *fmt, ...)
|
||
{
|
||
va_list args;
|
||
VALUE mesg;
|
||
va_start(args, fmt);
|
||
mesg = rb_enc_vsprintf(enc, fmt, args);
|
||
va_end(args);
|
||
rb_exc_raise(rb_exc_new3(exc, mesg));
|
||
}
|
||
void
|
||
rb_raise(VALUE exc, const char *fmt, ...)
|
||
{
|
||
va_list args;
|
include/ruby/encoding.h | ||
---|---|---|
VALUE rb_str_conv_enc(VALUE str, rb_encoding *from, rb_encoding *to);
|
||
VALUE rb_str_conv_enc_opts(VALUE str, rb_encoding *from, rb_encoding *to, int ecflags, VALUE ecopts);
|
||
PRINTF_ARGS(NORETURN(void rb_enc_raise(rb_encoding *, VALUE, const char*, ...)), 3, 4);
|
||
/* index -> rb_encoding */
|
||
rb_encoding* rb_enc_from_index(int idx);
|
||