Break CONNECTION_TESTCAE_ARG across multiple lines

This commit is contained in:
Nick Mathewson 2020-02-06 17:05:53 -05:00
parent 8a5a1600cd
commit 1651f92c16

View File

@ -967,9 +967,14 @@ test_failed_orconn_tracker(void *arg)
#define CONNECTION_TESTCASE(name, fork, setup) \
{ #name, test_conn_##name, fork, &setup, NULL }
#define STR(x) #x
/* where arg is an expression (constant, variable, compound expression) */
#define CONNECTION_TESTCASE_ARG(name, fork, setup, arg) \
{ #name "_" #arg, test_conn_##name, fork, &setup, (void *)arg }
#define CONNECTION_TESTCASE_ARG(name, fork, setup, arg) \
{ #name "_" STR(x), \
test_conn_##name, \
fork, \
&setup, \
(void *)arg }
#endif /* !defined(COCCI) */
static const unsigned int PROXY_CONNECT_ARG = PROXY_CONNECT;