mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13: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
|
#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.
|
||||||
|
Loading…
Reference in New Issue
Block a user