diff options
author | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-07 01:59:03 +0400 |
---|---|---|
committer | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-07 01:59:03 +0400 |
commit | 1e2e4791ad9327a6d717d322da0331471914884f (patch) | |
tree | d8ceabe34c8eb5109fc1734fed0cd4d732e8fa51 /source | |
parent | 47f9cc0158920327ee5eb1a1a9b4318027dead0d (diff) | |
download | kit-1e2e4791ad9327a6d717d322da0331471914884f.zip |
test
Diffstat (limited to 'source')
-rw-r--r-- | source/kit_test/test.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source/kit_test/test.h b/source/kit_test/test.h index bf1bf15..52a7b99 100644 --- a/source/kit_test/test.h +++ b/source/kit_test/test.h @@ -51,11 +51,12 @@ extern struct kit_tests_list kit_tests_list; # endif # pragma section(".CRT$XCU", read) -# define KIT_TEST_ON_START_2_(f, p) \ - KIT_EXTERN_C_ static void f(void); \ - __declspec(allocate(".CRT$XCU")) void (*f##_)(void) = f; \ - __pragma(comment(linker, "/include:" p #f "_")) static void f( \ - void) +# define KIT_TEST_ON_START_2_(f, p) \ + KIT_EXTERN_C_ static void f(void); \ + __declspec(allocate(".CRT$XCU")) void (*f##_)(void) = f; \ + __pragma(comment(linker, "/include:" p #f "_")) \ + KIT_EXTERN_C_ static void \ + f(void) # ifdef _WIN64 # define KIT_TEST_ON_START_(f) KIT_TEST_ON_START_2_(f, "") # else |