function rb_set_end_proc

void rb_set_end_proc(void (*func)(VALUE), VALUE data)