Add birb_assert_type
Review Request #3735 — Created Jan. 3, 2025 and submitted — Latest diff uploaded
This asserts that the object is of an exact type and outputs a helpful message
if it is not.Here's some example output:
ERROR:../birb/tests/test_string_object.c:38:test_birb_string_object_property_counter: foo is NULL and not an instance of BirbStringObject ERROR:../birb/tests/test_string_object.c:38:test_birb_string_object_property_counter: obj is of type BirbStringObject not GObject
Ran the string object test under valgrind and called in the turtles.
birb/birbassert.h |
---|
birb/meson.build |
---|
birb/tests/test_action_menu.c |
---|
birb/tests/test_custom_filter.c |
---|
birb/tests/test_filter.c |
---|
birb/tests/test_queued_output_stream.c |
---|
birb/tests/test_string_object.c |
---|