Use 0 as inert object reference value instead of -1
Towards using Null object for nil objects.
This commit is contained in:
parent
dcd1b07eea
commit
550a70f801
|
@ -41,7 +41,7 @@
|
|||
|
||||
/* reference_count */
|
||||
|
||||
#define HB_REFERENCE_COUNT_INERT_VALUE -1
|
||||
#define HB_REFERENCE_COUNT_INERT_VALUE 0
|
||||
#define HB_REFERENCE_COUNT_POISON_VALUE -0x0000DEAD
|
||||
#define HB_REFERENCE_COUNT_INIT {HB_ATOMIC_INT_INIT(HB_REFERENCE_COUNT_INERT_VALUE)}
|
||||
|
||||
|
|
Loading…
Reference in New Issue