diff options
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -124,16 +124,26 @@ rb_syntax_error_append(VALUE exc, VALUE file, int line, int column, void rb_compile_error_with_enc(const char *file, int line, void *enc, const char *fmt, ...) { + ONLY_FOR_INTERNAL_USE("rb_compile_error_with_enc()"); } void rb_compile_error(const char *file, int line, const char *fmt, ...) { + ONLY_FOR_INTERNAL_USE("rb_compile_error()"); } void rb_compile_error_append(const char *fmt, ...) { + ONLY_FOR_INTERNAL_USE("rb_compile_error_append()"); +} + +void +ruby_only_for_internal_use(const char *func) +{ + rb_print_backtrace(); + rb_fatal("%s is only for internal use and deprecated; do not use", func); } static VALUE |