Add birb_assert_type

Review Request #3735 — Created Jan. 3, 2025 and submitted — Latest diff uploaded

Information

birb/birb
default

Reviewers

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.

Commits

Files