diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-05-20 14:00:14 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-05-20 21:43:30 +0900 |
commit | 8d242a33af19672977dcdcb8d32e9ad547bc0141 (patch) | |
tree | 3e15a99988ed8b084b6af40c9f94dae33a5082eb /shape.c | |
parent | 87217f26f120611d009f1b178d3cc5eaf1b8b515 (diff) |
`rb_bug` prints a newline after the message
Diffstat (limited to 'shape.c')
-rw-r--r-- | shape.c | 8 |
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"); + rb_bug("Out of shapes"); } 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"); + rb_bug("Ivar should not exist on transition"); } } 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"); + rb_bug("Unreachable"); 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"); + rb_bug("Unreachable"); break; } |