mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Add extern support for file-scope variables in testsupport.h
This commit is contained in:
@@ -6,8 +6,10 @@
|
||||
|
||||
#ifdef TOR_UNIT_TESTS
|
||||
#define STATIC
|
||||
#define EXTERN(type, name) extern type name;
|
||||
#else
|
||||
#define STATIC static
|
||||
#define EXTERN(type, name)
|
||||
#endif
|
||||
|
||||
/** Quick and dirty macros to implement test mocking.
|
||||
|
||||
Reference in New Issue
Block a user