summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-04-19 12:12:55 +0200
committerTyge Løvset <[email protected]>2022-04-19 12:12:55 +0200
commitba6da4261792bd5da7da952877c299cd5c7a607b (patch)
treebb80f8dfa108a3ccf92184b688ecb5a534ca8b5f /examples
parent58497293d88109624d4798c56e888bcbab7c4285 (diff)
downloadSTC-modified-ba6da4261792bd5da7da952877c299cd5c7a607b.tar.gz
STC-modified-ba6da4261792bd5da7da952877c299cd5c7a607b.zip
Added #error/warnings for likely missing definitions of i_hash/i_cmp.
Diffstat (limited to 'examples')
-rw-r--r--examples/new_map.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/new_map.c b/examples/new_map.c
index ec37a846..2671790a 100644
--- a/examples/new_map.c
+++ b/examples/new_map.c
@@ -25,6 +25,7 @@ int point_cmp(const Point* a, const Point* b) {
#define i_key Point
#define i_val int
#define i_cmp point_cmp
+#define i_hash c_default_hash
#define i_opt c_is_fwd
#define i_tag pnt
#include <stc/cmap.h>