diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-10-17 05:47:34 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-10-17 05:47:34 +0800 |
commit | fac0dbd69c7d8a6807d51cc12615de88b7a900be (patch) | |
tree | b34bd96cea24b980bb4719a36f99e9a59c050a48 /camel/camel-object.h | |
parent | 700863d70308d66b7ce99d851254dff20a6ad80b (diff) | |
download | gsoc2013-evolution-fac0dbd69c7d8a6807d51cc12615de88b7a900be.tar.gz gsoc2013-evolution-fac0dbd69c7d8a6807d51cc12615de88b7a900be.tar.zst gsoc2013-evolution-fac0dbd69c7d8a6807d51cc12615de88b7a900be.zip |
If CAMEL_DEBUG is defined, print some useful ref/unref info.
2001-10-16 Jeffrey Stedfast <fejj@ximian.com>
* camel-object.[c,h]: If CAMEL_DEBUG is defined, print some useful
ref/unref info.
* providers/imap/camel-imap-store.c (delete_folder): Fixed an
assignment warning.
* camel-uid-cache.c (camel_uid_cache_new): Make sure that the
parent directory exists before trying to open the filename, if it
doesn't, create it.
svn path=/trunk/; revision=13707
Diffstat (limited to 'camel/camel-object.h')
-rw-r--r-- | camel/camel-object.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/camel/camel-object.h b/camel/camel-object.h index ec0416d4f4..613f05dcc8 100644 --- a/camel/camel-object.h +++ b/camel/camel-object.h @@ -116,8 +116,15 @@ const gchar *camel_type_to_name (CamelType type); CamelType camel_object_get_type (void); CamelObject *camel_object_new (CamelType type); -void camel_object_ref (CamelObject * obj); -void camel_object_unref (CamelObject * obj); + +void camel_object_ref (CamelObject *obj); +void camel_object_unref (CamelObject *obj); + +#ifdef CAMEL_DEBUG +#define camel_object_ref(o) (printf("%s (%s:%d):ref (%p)\n", __FUNCTION__, __FILE__, __LINE__, o), camel_object_ref(o)) +#define camel_object_unref(o) (printf("%s (%s:%d):unref (%p)\n", __FUNCTION__, __FILE__, __LINE__, o), camel_object_unref (o)) +#endif + CamelObject *camel_object_check_cast (CamelObject * obj, CamelType ctype); CamelObjectClass *camel_object_class_check_cast (CamelObjectClass * |