1
/* this really should be in GLib */
4
#define _g_assert_property_notify(object, property_name) \
7
if (!G_IS_OBJECT (object)) \
9
g_assertion_message (G_LOG_DOMAIN, \
13
"Not a GObject instance"); \
15
if (g_object_class_find_property (G_OBJECT_GET_CLASS (object), \
16
property_name) == NULL) \
18
g_assertion_message (G_LOG_DOMAIN, \
22
"Property " property_name " does not " \
25
if (_g_assert_property_notify_run (object, property_name)) \
27
g_assertion_message (G_LOG_DOMAIN, \
31
"Timed out waiting for notification " \
32
"on property " property_name); \
37
#define _g_assert_signal_received(object, signal_name, callback, user_data) \
40
if (!G_IS_OBJECT (object)) \
42
g_assertion_message (G_LOG_DOMAIN, \
46
"Not a GObject instance"); \
48
if (g_signal_lookup (signal_name, \
49
G_TYPE_FROM_INSTANCE (object)) == 0) \
51
g_assertion_message (G_LOG_DOMAIN, \
55
"Signal `" signal_name "' does not " \
58
if (_g_assert_signal_received_run (object, signal_name, callback, user_data)) \
60
g_assertion_message (G_LOG_DOMAIN, \
64
"Timed out waiting for signal `" \
70
gboolean _g_assert_property_notify_run (gpointer object,
71
const gchar *property_name);
74
gboolean _g_assert_signal_received_run (gpointer object,
75
const gchar *signal_name,