diff --git a/src/hashset.hpp b/src/hashset.hpp index bc9a192e..1e25a44e 100644 --- a/src/hashset.hpp +++ b/src/hashset.hpp @@ -22,14 +22,6 @@ #include "wyhash.h" #include -#define NAME str_set -#define KEY_TY const char* -#define HASH_FN vt_hash_const_string -#define CMPR_FN vt_cmpr_const_string -#include "verstable.h" - -KHASH_SET_INIT_INT64(hashset); - static inline uint64_t @@ -52,6 +44,15 @@ vt_cmpr_const_string(const char *key_1, return (strcmp(key_1,key_2) == 0); } +#define NAME str_set +#define KEY_TY const char* +#define HASH_FN vt_hash_const_string +#define CMPR_FN vt_cmpr_const_string +#include "verstable.h" + +KHASH_SET_INIT_INT64(hashset); + + class HashSet { public: