Merge pull request #1867 from silvergasp/thread_local_globals
fix: Change all static variables to thread when fuzzing
This commit is contained in:
@@ -61,6 +61,13 @@
|
||||
#define TU_VERIFY_STATIC(const_expr, _mess) enum { TU_XSTRCAT(_verify_static_, _TU_COUNTER_) = 1/(!!(const_expr)) }
|
||||
#endif
|
||||
|
||||
/* --------------------- Fuzzing types -------------------------------------- */
|
||||
#ifdef _FUZZ
|
||||
#define _fuzz_thread __thread
|
||||
#else
|
||||
#define _fuzz_thread
|
||||
#endif
|
||||
|
||||
// for declaration of reserved field, make use of _TU_COUNTER_
|
||||
#define TU_RESERVED TU_XSTRCAT(reserved, _TU_COUNTER_)
|
||||
|
||||
|
Reference in New Issue
Block a user