diff options
Diffstat (limited to 'libdimension/refcount-internal.h')
-rw-r--r-- | libdimension/refcount-internal.h | 3 |
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)) |