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.

Diff Revision 3 (Latest)

orig
1
2
3

Commits

First Last Summary ID Author
Add birb_assert_type
This asserts that the object is of an exact type and outputs a helpful message if it is not.
a99a04474b867d631298e55a95ff4411ec9cacc4 Gary Kramlich
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
Loading...