SafeStringValue

I can’t find any documentation that explains what this Ruby C
function does. Do you know?

Mark V. wrote:

I can’t find any documentation that explains what this Ruby C function
does. Do you know?

It’s a macro in ruby.h. Looks like it a) ensures that the VALUE is a
String object (or can be converted using to_str) and b) raises an
exception if $SAFE> 0 and the string is tainted.