rb_write_error

Function rb_write_error 

Source
pub unsafe extern "C" fn rb_write_error(str_: *const c_char)
Expand description

Writes the given error message to somewhere applicable. On Windows it goes to the console. On POSIX environments it goes to the standard error.

@warning IT IS A BAD IDEA to use this function form your C extensions. It is often annoying when GUI applications write to consoles; users don’t want to look at there. Programmers also want to control the cause of the message itself, like by rescuing an exception. Just let ruby handle errors. That must be better than going your own way.

@param[in] str Error message to display. @post str is written to somewhere.

@internal

§AFAIK this function is listed here without marked deprecated because there are usages of this function in the wild.

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3