function safe_setter

[edit]
static void safe_setter(VALUE val)