summaryrefslogtreecommitdiffstats
path: root/libdimension/refcount-internal.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-12-14 19:51:25 -0500
committerTavian Barnes <tavianator@gmail.com>2011-12-15 20:02:12 -0500
commit6b94e0329841ed8e80dbb55a3f8c2eee41b3168b (patch)
treef4f5b2b8519744475c05ce4ba813740dcc1db4b8 /libdimension/refcount-internal.h
parentbfbe9e43e108f6816c17b9b7764b75284ac78313 (diff)
downloaddimension-6b94e0329841ed8e80dbb55a3f8c2eee41b3168b.tar.xz
Make refcount declarations uniform.
Diffstat (limited to 'libdimension/refcount-internal.h')
-rw-r--r--libdimension/refcount-internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdimension/refcount-internal.h b/libdimension/refcount-internal.h
index c2321c9..5ae5d58 100644
--- a/libdimension/refcount-internal.h
+++ b/libdimension/refcount-internal.h
@@ -29,4 +29,5 @@
* @return Whether the object is now garbage.
*/
#define DMNSN_DECREF(object) \
- ((object) && ((object)->refcount == 0 || --(object)->refcount == 0))
+ ((object) && ((object)->DMNSN_REFCOUNT_NAME == 0 \
+ || --(object)->DMNSN_REFCOUNT_NAME == 0))