From ac86d9b736bc4293959770e0d81bfb881c6562fb Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 24 Feb 2015 12:43:10 +1100 Subject: [PATCH] Add an HASH_REPLACE_I64 helper macro --- src/uthash.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uthash.h b/src/uthash.h index 10c9b6b7..31db3fa8 100644 --- a/src/uthash.h +++ b/src/uthash.h @@ -265,6 +265,8 @@ do { HASH_FIND(hh,head,findint,sizeof(int64_t),out) #define HASH_ADD_I64(head,intfield,add) \ HASH_ADD(hh,head,intfield,sizeof(int64_t),add) +#define HASH_REPLACE_I64(head,intfield,add,replaced) \ + HASH_REPLACE(hh,head,intfield,sizeof(int64_t),add,replaced) #define HASH_FIND_PTR(head,findptr,out) \ HASH_FIND(hh,head,findptr,sizeof(void *),out) #define HASH_ADD_PTR(head,ptrfield,add) \