function val_setter

[edit]
static void val_setter(VALUE val, ID id, void *data, struct global_variable *var)