Moved EV_STR_evstring_MAGIC to header part so that evstr(...) can use it
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
4
ev_str.h
4
ev_str.h
@@ -10,6 +10,8 @@
|
||||
#include <stddef.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#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)
|
||||
|
||||
Reference in New Issue
Block a user