Skip to content

Commit

Permalink
Move rb_tr_warn_va_list function to error.c
Browse files Browse the repository at this point in the history
  • Loading branch information
andrykonchin committed Jan 16, 2025
1 parent 4fa4516 commit f4f9bf8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/cext/ABI_check.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8
9
4 changes: 4 additions & 0 deletions src/main/c/cext/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ bool rb_warning_category_enabled_p(rb_warning_category_t category) {
return true;
}
}

void rb_tr_warn_va_list(const char *fmt, va_list args) {
RUBY_CEXT_INVOKE("rb_tr_warn", rb_vsprintf(fmt, args));
}
4 changes: 0 additions & 4 deletions src/main/c/cext/truffleruby.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ int rb_tr_obj_equal(VALUE first, VALUE second) {
return RTEST(RUBY_CEXT_INVOKE("rb_tr_obj_equal", first, second));
}

void rb_tr_warn_va_list(const char *fmt, va_list args) {
RUBY_CEXT_INVOKE("rb_tr_warn", rb_vsprintf(fmt, args));
}

VALUE rb_tr_zlib_crc_table(void) {
return RUBY_CEXT_INVOKE("zlib_get_crc_table");
}
Expand Down

0 comments on commit f4f9bf8

Please sign in to comment.