object: to_string() now takes a const object pointer

This commit is contained in:
2025-09-22 10:47:33 +01:00
parent 16b68b6fba
commit d9041cda3f
7 changed files with 11 additions and 11 deletions

View File

@@ -32,7 +32,7 @@ BLUE_API b_object *b_make_rvalue(b_object *obj);
BLUE_API b_object *b_retain(b_object *obj);
BLUE_API void b_release(b_object *obj);
BLUE_API void b_to_string(b_object *obj, struct b_stream *out);
BLUE_API void b_to_string(const b_object *obj, struct b_stream *out);
BLUE_API b_object_type_id b_typeid(const b_object *obj);
BLUE_API b_comparison_result_t b_compare(const b_object *a, const b_object *b);

View File

@@ -45,7 +45,7 @@ typedef struct b_object_type {
b_queue_entry t_entry;
void (*t_init)(struct b_object *);
void (*t_release)(struct b_object *);
void (*t_to_string)(struct b_object *, struct b_stream *);
void (*t_to_string)(const struct b_object *, struct b_stream *);
} b_object_type;
BLUE_API b_status b_object_type_register(b_object_type *type);