mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Add extern support for file-scope variables in testsupport.h
This commit is contained in:
parent
cc6753939c
commit
4e4a760491
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user