rb_bug prints a newline after the given message [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2024-11-15 14:52:31 +09:00
parent b45f7a54af
commit b4d8e90c2a
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

5
gc.c
View File

@ -2771,7 +2771,8 @@ rb_gc_copy_attributes(VALUE dest, VALUE obj)
}
int
rb_gc_external_gc_loaded_p(void) {
rb_gc_external_gc_loaded_p(void)
{
return external_gc_loaded;
}
@ -2780,7 +2781,7 @@ rb_gc_active_gc_name(void)
{
const char *gc_name = rb_gc_impl_active_gc_name();
if (strlen(gc_name) > RB_GC_MAX_NAME_LEN) {
rb_bug("GC should have a name shorter than %d chars. Currently: %lu (%s)\n",
rb_bug("GC should have a name shorter than %d chars. Currently: %lu (%s)",
RB_GC_MAX_NAME_LEN, strlen(gc_name), gc_name);
}
return gc_name;