summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/smartpointers/person_arc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples/smartpointers/person_arc.c')
-rw-r--r--misc/examples/smartpointers/person_arc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/examples/smartpointers/person_arc.c b/misc/examples/smartpointers/person_arc.c
index 38c883a7..11040cd2 100644
--- a/misc/examples/smartpointers/person_arc.c
+++ b/misc/examples/smartpointers/person_arc.c
@@ -31,11 +31,12 @@ void Person_drop(Person* p) {
#define i_type PSPtr
#define i_keyclass Person // ensure Person_drop
-#define i_cmp Person_cmp // specify object cmp, instead of ptr cmp for arc.
+#define i_use_cmp
#include <stc/carc.h>
#define i_type Persons
#define i_keyboxed PSPtr // binds PSPtr_cmp, PSPtr_drop...
+#define i_use_cmp
#include <stc/cvec.h>