add stringifycation of prefix macro
This commit is contained in:
@@ -24,6 +24,12 @@
|
|||||||
#define KUNITY_DEFAULT_TEST_NAME_PREFIX kunity_test_
|
#define KUNITY_DEFAULT_TEST_NAME_PREFIX kunity_test_
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef KUNITY_DEFAULT_TEST_NAME_PREFIX_STR
|
||||||
|
#define STR(s) #s
|
||||||
|
#define XSTR(s) STR(s)
|
||||||
|
#define KUNITY_DEFAULT_TEST_NAME_PREFIX_STR XSTR(KUNITY_DEFAULT_TEST_NAME_PREFIX)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef KUNITY_CREATE_TEST_NAME
|
#ifndef KUNITY_CREATE_TEST_NAME
|
||||||
#define JOIN(x,y) x ## y
|
#define JOIN(x,y) x ## y
|
||||||
#define CONCAT(x,y) JOIN(x,y)
|
#define CONCAT(x,y) JOIN(x,y)
|
||||||
|
|||||||
Reference in New Issue
Block a user