-
-
Technically, you should assign
instance
andtype
to new private variables in here to prevent multiple evaluation (see GLib's implementation). (though the private variable can't apply to#instance
.)
Add birb_assert_type
Review Request #3735 — Created Jan. 3, 2025 and submitted
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.
Summary | ID |
---|---|
a99a04474b867d631298e55a95ff4411ec9cacc4 |
Description | From | Last Updated |
---|---|---|
Technically, you should assign instance and type to new private variables in here to prevent multiple evaluation (see GLib's implementation). … |
QuLogic |
- Change Summary:
-
Use a variable instead of wrapping all uses in
()
's and make sure we have an object before assuming we have an object. - Commits:
-
Summary ID 24d0872d2cfa0380f16fd3a8d2a97989be0123e2 bde7f507b0e372136c57434a5ddc2a8e7161dfe9