From 7ec5d242aafed7a1043ec5a1df41d02131a9a364 Mon Sep 17 00:00:00 2001 From: Robear Selwans Date: Sun, 30 Jan 2022 16:17:21 +0000 Subject: [PATCH] Moved `EV_STR_evstring_MAGIC` to header part so that `evstr(...)` can use it Signed-off-by: Robear Selwans --- ev_str.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ev_str.h b/ev_str.h index 1394c07..057abcf 100644 --- a/ev_str.h +++ b/ev_str.h @@ -10,6 +10,8 @@ #include #include +#define EV_STR_evstring_MAGIC (0x65767374) + #ifdef EV_STR_SHARED #if defined (EV_STR_IMPL) #define EV_STR_API EV_EXPORT @@ -203,8 +205,6 @@ evstring_findLastChar( #define META(s) (((struct evstr_meta_t *)(s)) - 1) -#define EV_STR_evstring_MAGIC (0x65767374) - #if EV_BUILDTYPE_DEBUG || EV_BUILDTYPE_DEBUGOPT #define evstr_asserttype(str) \ assert(META(str)->magic == EV_STR_evstring_MAGIC)