diff options
| author | Tyge Løvset <[email protected]> | 2023-08-10 21:17:48 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-08-10 21:17:48 +0200 |
| commit | be5651c9fc3d3ecd2d9d24e6e4763260ef86de41 (patch) | |
| tree | c9e9f5bc6814716b4faac75833cc1ecc1371c8c5 /misc/examples/smartpointers/arc_containers.c | |
| parent | c27c266b6c4ae0e5e535b18c3790ee97416412b9 (diff) | |
| download | STC-modified-be5651c9fc3d3ecd2d9d24e6e4763260ef86de41.tar.gz STC-modified-be5651c9fc3d3ecd2d9d24e6e4763260ef86de41.zip | |
Update template.h - also renamed i_cmp_native => i_use_cmp
Diffstat (limited to 'misc/examples/smartpointers/arc_containers.c')
| -rw-r--r-- | misc/examples/smartpointers/arc_containers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/examples/smartpointers/arc_containers.c b/misc/examples/smartpointers/arc_containers.c index 6209005d..c2bff56f 100644 --- a/misc/examples/smartpointers/arc_containers.c +++ b/misc/examples/smartpointers/arc_containers.c @@ -12,11 +12,11 @@ #define i_key Map #define i_keydrop(p) (printf("drop Arc:\n"), Map_drop(p)) // no need for atomic ref. count in single thread: -#define i_opt c_no_atomic +#define i_opt c_no_atomic|c_no_cmp #include <stc/carc.h> #define i_type Stack -#define i_keyboxed Arc // define i_keyboxed for carc/cbox value (not i_key) +#define i_keyboxed Arc // use i_keyboxed for carc/cbox key #include <stc/cvec.h> #define i_type List |
