diff options
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -2129,6 +2129,13 @@ rb_error_frozen(const char *what) rb_raise(rb_eRuntimeError, "can't modify frozen %s", what); } +void +rb_error_frozen_object(VALUE frozen_obj) +{ + rb_raise(rb_eRuntimeError, "can't modify frozen %"PRIsVALUE, + CLASS_OF(frozen_obj)); +} + #undef rb_check_frozen void rb_check_frozen(VALUE obj) |