summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/smartpointers/arcvec_erase.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-08-10 21:17:48 +0200
committerTyge Løvset <[email protected]>2023-08-10 21:17:48 +0200
commitbe5651c9fc3d3ecd2d9d24e6e4763260ef86de41 (patch)
treec9e9f5bc6814716b4faac75833cc1ecc1371c8c5 /misc/examples/smartpointers/arcvec_erase.c
parentc27c266b6c4ae0e5e535b18c3790ee97416412b9 (diff)
downloadSTC-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/arcvec_erase.c')
-rw-r--r--misc/examples/smartpointers/arcvec_erase.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/examples/smartpointers/arcvec_erase.c b/misc/examples/smartpointers/arcvec_erase.c
index 9d757533..0526b6a0 100644
--- a/misc/examples/smartpointers/arcvec_erase.c
+++ b/misc/examples/smartpointers/arcvec_erase.c
@@ -5,11 +5,12 @@ void show_drop(int* x) { printf("drop: %d\n", *x); }
#define i_type Arc
#define i_key int
#define i_keydrop show_drop
-#define i_cmp_native // enable sort/search for int type
+#define i_use_cmp // enable sort/search for int type
#include <stc/carc.h> // Shared pointer to int
#define i_type Vec
#define i_keyboxed Arc
+#define i_use_cmp
#include <stc/cvec.h> // Vec: cvec<Arc>