mirror of
https://github.com/unittest-cpp/unittest-cpp
synced 2026-09-26 16:19:30 +03:00
Tweak preprocessor blocks.
This commit is contained in:
parent
f82c403768
commit
bb7555c718
9 changed files with 90 additions and 87 deletions
|
|
@ -476,7 +476,7 @@ cmt_insert_func_header = ""
|
|||
cmt_insert_class_header = ""
|
||||
cmt_insert_oc_msg_header = ""
|
||||
cmt_insert_before_preproc = false
|
||||
pp_indent = remove
|
||||
pp_indent = ignore
|
||||
pp_indent_at_level = false
|
||||
pp_indent_count = 3
|
||||
pp_space = ignore
|
||||
|
|
|
|||
|
|
@ -158,6 +158,7 @@
|
|||
|
||||
// CHECK_THROW and CHECK_ASSERT only exist when UNITTEST_NO_EXCEPTIONS isn't defined (see config.h)
|
||||
#ifndef UNITTEST_NO_EXCEPTIONS
|
||||
|
||||
#define CHECK_THROW(expression, ExpectedExceptionType) \
|
||||
UNITTEST_MULTILINE_MACRO_BEGIN \
|
||||
bool caught_ = false; \
|
||||
|
|
@ -176,4 +177,5 @@
|
|||
UnitTest::Detail::ExpectAssert(false); \
|
||||
UNITTEST_MULTILINE_MACRO_END
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
#ifdef _USRDLL
|
||||
#define UNITTEST_WIN32_DLL
|
||||
#endif
|
||||
|
||||
#define UNITTEST_WIN32
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue