Add extern support for file-scope variables in testsupport.h

This commit is contained in:
Andrea Shepard 2016-06-25 07:47:25 +00:00
parent cc6753939c
commit 4e4a760491

View File

@ -6,8 +6,10 @@
#ifdef TOR_UNIT_TESTS #ifdef TOR_UNIT_TESTS
#define STATIC #define STATIC
#define EXTERN(type, name) extern type name;
#else #else
#define STATIC static #define STATIC static
#define EXTERN(type, name)
#endif #endif
/** Quick and dirty macros to implement test mocking. /** Quick and dirty macros to implement test mocking.