summaryrefslogtreecommitdiff
path: root/shape.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2023-05-20 14:00:14 +0900
committerNobuyoshi Nakada <[email protected]>2023-05-20 21:43:30 +0900
commit8d242a33af19672977dcdcb8d32e9ad547bc0141 ()
tree3e15a99988ed8b084b6af40c9f94dae33a5082eb /shape.c
parent87217f26f120611d009f1b178d3cc5eaf1b8b515 (diff)
`rb_bug` prints a newline after the message
-rw-r--r--shape.c8
1 files changed, 4 insertions, 4 deletions
@@ -122,7 +122,7 @@ shape_alloc(void)
if (shape_id == MAX_SHAPE_ID) {
// TODO: Make an OutOfShapesError ??
- rb_bug("Out of shapes\n");
}
return &GET_SHAPE_TREE()->shape_list[shape_id];
@@ -451,7 +451,7 @@ rb_shape_get_iv_index(rb_shape_t * shape, ID id, attr_index_t *value)
return false;
case SHAPE_OBJ_TOO_COMPLEX:
case SHAPE_FROZEN:
- rb_bug("Ivar should not exist on transition\n");
}
}
shape = rb_shape_get_parent(shape);
@@ -516,7 +516,7 @@ rb_shape_traverse_from_new_root(rb_shape_t *initial_shape, rb_shape_t *dest_shap
case SHAPE_T_OBJECT:
break;
case SHAPE_OBJ_TOO_COMPLEX:
- rb_bug("Unreachable\n");
break;
}
@@ -553,7 +553,7 @@ rb_shape_rebuild_shape(rb_shape_t * initial_shape, rb_shape_t * dest_shape)
case SHAPE_T_OBJECT:
break;
case SHAPE_OBJ_TOO_COMPLEX:
- rb_bug("Unreachable\n");
break;
}