summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/smartpointers/person_arc.c
diff options
context:
space:
mode:
authortylov <[email protected]>2023-08-10 22:32:02 +0200
committertylov <[email protected]>2023-08-10 22:32:02 +0200
commit2ea55509f1d3c7b438340ad37cf725e8438c7673 (patch)
tree539975c90da5fe20395adb4fe7627b787040daa5 /misc/examples/smartpointers/person_arc.c
parent97898812b4c0185db74fc5c94c7556ecef3fb1e3 (diff)
parentbe5651c9fc3d3ecd2d9d24e6e4763260ef86de41 (diff)
downloadSTC-modified-2ea55509f1d3c7b438340ad37cf725e8438c7673.tar.gz
STC-modified-2ea55509f1d3c7b438340ad37cf725e8438c7673.zip
Merge branch 'master' of https://github.com/stclib/STC
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>