summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-internals.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-04-24 19:18:23 +0000
committerHavoc Pennington <hp@redhat.com>2003-04-24 19:18:23 +0000
commitc9cd648f115759176d35508e9007dc5520a0dd3f (patch)
treef995183f7e792f5e5647274275ef6cfbbe3dffe9 /dbus/dbus-internals.c
parentc2a28557111c3cfdb10f8a0cfdd495ffd70fa0a3 (diff)
2003-04-24 Havoc Pennington <hp@redhat.com>
* configure.in: add --enable-checks * dbus/dbus-message.c (dbus_message_new): reverse name/service arguments * dbus/dbus-connection.c (dbus_connection_preallocate_send): fix to use thread locks. (_dbus_connection_handler_destroyed_locked): move some private functions into proper docs group * dbus/dbus-internals.h: add _dbus_return_if_fail, _dbus_return_val_if_fail Throughout: use dbus_return_if_fail
Diffstat (limited to 'dbus/dbus-internals.c')
-rw-r--r--dbus/dbus-internals.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/dbus/dbus-internals.c b/dbus/dbus-internals.c
index 30f47f00..25bd52ba 100644
--- a/dbus/dbus-internals.c
+++ b/dbus/dbus-internals.c
@@ -356,6 +356,12 @@ _dbus_type_to_string (int type)
}
}
+#ifndef DBUS_DISABLE_CHECKS
+const char _dbus_return_if_fail_warning_format[] =
+"Arguments to %s were incorrect, assertion \"%s\" failed in file %s line %d.\n"
+"This is normally a bug in some application using the D-BUS library.\n";
+#endif
+
#ifndef DBUS_DISABLE_ASSERT
/**
* Internals of _dbus_assert(); it's a function