summaryrefslogtreecommitdiffhomepage
path: root/include/stc/carc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stc/carc.h')
-rw-r--r--include/stc/carc.h12
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);