diff options
| author | tylov <[email protected]> | 2023-08-10 22:32:02 +0200 |
|---|---|---|
| committer | tylov <[email protected]> | 2023-08-10 22:32:02 +0200 |
| commit | 2ea55509f1d3c7b438340ad37cf725e8438c7673 (patch) | |
| tree | 539975c90da5fe20395adb4fe7627b787040daa5 /misc/examples/smartpointers/new_sptr.c | |
| parent | 97898812b4c0185db74fc5c94c7556ecef3fb1e3 (diff) | |
| parent | be5651c9fc3d3ecd2d9d24e6e4763260ef86de41 (diff) | |
| download | STC-modified-2ea55509f1d3c7b438340ad37cf725e8438c7673.tar.gz STC-modified-2ea55509f1d3c7b438340ad37cf725e8438c7673.zip | |
Merge branch 'master' of https://github.com/stclib/STC
Diffstat (limited to 'misc/examples/smartpointers/new_sptr.c')
| -rw-r--r-- | misc/examples/smartpointers/new_sptr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/examples/smartpointers/new_sptr.c b/misc/examples/smartpointers/new_sptr.c index 3c6fa16c..50e28ae2 100644 --- a/misc/examples/smartpointers/new_sptr.c +++ b/misc/examples/smartpointers/new_sptr.c @@ -10,12 +10,13 @@ uint64_t Person_hash(const Person* p); #define i_type PersonArc #define i_keyclass Person // "class" assume _clone, _drop, _cmp, _hash is defined. +#define i_use_cmp #include <stc/carc.h> #define i_type IPtr #define i_key int #define i_keydrop(x) printf("drop: %d\n", *x) -#define i_cmp_native +#define i_use_cmp #include <stc/carc.h> #define i_type IPStack |
