add stringifycation of prefix macro

This commit is contained in:
stubbfel
2018-01-29 00:55:12 +01:00
parent 80f56f28f3
commit 7c4a1d6fe8

View File

@@ -24,6 +24,12 @@
#define KUNITY_DEFAULT_TEST_NAME_PREFIX kunity_test_
#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
#define JOIN(x,y) x ## y
#define CONCAT(x,y) JOIN(x,y)