diff options
| author | Tyge Løvset <[email protected]> | 2022-11-14 11:04:40 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-11-14 11:04:40 +0100 |
| commit | bb67f7192b7786792794b783a3d11c3e61d92c39 (patch) | |
| tree | 037ea2229ccc698b2d73c6dfde668abebb1a23d8 /include/stc/carc.h | |
| parent | bed7d49063cab3c4f2addb7d06af8db631a3b846 (diff) | |
| download | STC-modified-bb67f7192b7786792794b783a3d11c3e61d92c39.tar.gz STC-modified-bb67f7192b7786792794b783a3d11c3e61d92c39.zip | |
Internal update.
Diffstat (limited to 'include/stc/carc.h')
| -rw-r--r-- | include/stc/carc.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/stc/carc.h b/include/stc/carc.h index 69a5660e..31cfa387 100644 --- a/include/stc/carc.h +++ b/include/stc/carc.h @@ -79,10 +79,10 @@ int main() { #define _i_prefix carc_ #endif #if !(defined i_cmp || defined i_less || defined i_keyclass || defined i_valclass) - #define _i_no_cmp + #define i_no_cmp #endif #if !(defined i_eq || defined i_hash || defined i_keyclass || defined i_valclass) - #define _i_no_hash + #define i_no_hash #endif #include "template.h" typedef i_keyraw _cx_raw; @@ -149,7 +149,7 @@ STC_INLINE void _cx_memb(_reset_to)(_cx_self* self, _cx_value* p) { *self = _cx_memb(_from_ptr)(p); } -#ifndef _i_no_emplace +#ifndef i_no_emplace STC_INLINE _cx_self _cx_memb(_from)(_cx_raw raw) { return _cx_memb(_make)(i_keyfrom(raw)); } #else @@ -178,7 +178,7 @@ STC_INLINE void _cx_memb(_take)(_cx_self* self, _cx_self ptr) { } STC_INLINE int _cx_memb(_raw_cmp)(const _cx_raw* rx, const _cx_raw* ry) { - #if defined _i_no_cmp + #if defined i_no_cmp return memcmp(rx, ry, sizeof *rx); #else return i_cmp(rx, ry); @@ -186,7 +186,7 @@ STC_INLINE int _cx_memb(_raw_cmp)(const _cx_raw* rx, const _cx_raw* ry) { } STC_INLINE uint64_t _cx_memb(_raw_hash)(const _cx_raw* rx) { - #if defined _i_no_hash + #if defined i_no_hash return c_default_hash(rx); #else return i_hash(rx); @@ -194,7 +194,7 @@ STC_INLINE uint64_t _cx_memb(_raw_hash)(const _cx_raw* rx) { } STC_INLINE bool _cx_memb(_raw_eq)(const _cx_raw* rx, const _cx_raw* ry) { - #if defined _i_no_hash + #if defined i_no_hash return memcmp(rx, ry, sizeof *rx) == 0; #else return i_eq(rx, ry); |
