summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/refcount.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/dimension/refcount.h')
-rw-r--r--libdimension/dimension/refcount.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/dimension/refcount.h b/libdimension/dimension/refcount.h
index be437a8..5ffde4c 100644
--- a/libdimension/dimension/refcount.h
+++ b/libdimension/dimension/refcount.h
@@ -32,7 +32,7 @@ typedef unsigned int dmnsn_refcount;
* Increment a reference count.
* @param[in,out] object The reference-counted object to acquire.
*/
-#define DMNSN_INCREF(obj) ((void)((obj) && ++(obj)->refcount))
+#define DMNSN_INCREF(object) ((void)((object) && ++(object)->refcount))
/**
* @internal
@@ -40,5 +40,5 @@ typedef unsigned int dmnsn_refcount;
* @param[in,out] object The reference-counted object to release.
* @return Whether the object is now garbage.
*/
-#define DMNSN_DECREF(obj) \
- ((obj) && ((obj)->refcount == 0 || --(obj)->refcount == 0))
+#define DMNSN_DECREF(object) \
+ ((object) && ((object)->refcount == 0 || --(object)->refcount == 0))