diff options
| author | Tyge Løvset <[email protected]> | 2023-08-01 20:50:29 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-08-01 21:03:27 +0200 |
| commit | da14db1a3b3570d52f22c7ae4027d1a53b6ac862 (patch) | |
| tree | 727514ca23bcfc8c5bab72d5c71405e2fec08451 /include/stc/cmap.h | |
| parent | 7df124507b82bfb168a440392060bc0e03ce5c7e (diff) | |
| download | STC-modified-da14db1a3b3570d52f22c7ae4027d1a53b6ac862.tar.gz STC-modified-da14db1a3b3570d52f22c7ae4027d1a53b6ac862.zip | |
Added some checks that a proper i_cmp/(i_hash) is defined when i_keyraw conversion type is specified for maps. Advanced usage.
Diffstat (limited to 'include/stc/cmap.h')
| -rw-r--r-- | include/stc/cmap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/stc/cmap.h b/include/stc/cmap.h index 2dd8cbe6..cd7430ba 100644 --- a/include/stc/cmap.h +++ b/include/stc/cmap.h @@ -69,6 +69,7 @@ struct chash_slot { uint8_t hashx; }; #define _i_SET_ONLY c_true #define _i_keyref(vp) (vp) #endif +#define _i_ishash #include "priv/template.h" #ifndef i_is_forward _cx_DEFTYPES(_c_chash_types, _cx_Self, i_key, i_val, _i_MAP_ONLY, _i_SET_ONLY); @@ -463,6 +464,7 @@ _cx_MEMB(_erase_entry)(_cx_Self* self, _cx_value* _val) { #undef i_max_load_factor #undef _i_isset #undef _i_ismap +#undef _i_ishash #undef _i_keyref #undef _i_MAP_ONLY #undef _i_SET_ONLY |
