|
1 | 1 | /*
|
2 |
| - * Catch v2.13.8 |
3 |
| - * Generated: 2022-01-03 21:20:09.589503 |
| 2 | + * Catch v2.13.10 |
| 3 | + * Generated: 2022-10-16 11:01:23.452308 |
4 | 4 | * ----------------------------------------------------------
|
5 | 5 | * This file has been merged from multiple headers. Please don't edit it directly
|
6 | 6 | * Copyright (c) 2022 Two Blue Cubes Ltd. All rights reserved.
|
|
15 | 15 |
|
16 | 16 | #define CATCH_VERSION_MAJOR 2
|
17 | 17 | #define CATCH_VERSION_MINOR 13
|
18 |
| -#define CATCH_VERSION_PATCH 8 |
| 18 | +#define CATCH_VERSION_PATCH 10 |
19 | 19 |
|
20 | 20 | #ifdef __clang__
|
21 | 21 | # pragma clang system_header
|
@@ -7395,8 +7395,6 @@ namespace Catch {
|
7395 | 7395 | template <typename T, bool Destruct>
|
7396 | 7396 | struct ObjectStorage
|
7397 | 7397 | {
|
7398 |
| - using TStorage = typename std::aligned_storage<sizeof(T), std::alignment_of<T>::value>::type; |
7399 |
| - |
7400 | 7398 | ObjectStorage() : data() {}
|
7401 | 7399 |
|
7402 | 7400 | ObjectStorage(const ObjectStorage& other)
|
@@ -7439,7 +7437,7 @@ namespace Catch {
|
7439 | 7437 | return *static_cast<T*>(static_cast<void*>(&data));
|
7440 | 7438 | }
|
7441 | 7439 |
|
7442 |
| - TStorage data; |
| 7440 | + struct { alignas(T) unsigned char data[sizeof(T)]; } data; |
7443 | 7441 | };
|
7444 | 7442 | }
|
7445 | 7443 |
|
@@ -7949,7 +7947,7 @@ namespace Catch {
|
7949 | 7947 | #if defined(__i386__) || defined(__x86_64__)
|
7950 | 7948 | #define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */
|
7951 | 7949 | #elif defined(__aarch64__)
|
7952 |
| - #define CATCH_TRAP() __asm__(".inst 0xd4200000") |
| 7950 | + #define CATCH_TRAP() __asm__(".inst 0xd43e0000") |
7953 | 7951 | #endif
|
7954 | 7952 |
|
7955 | 7953 | #elif defined(CATCH_PLATFORM_IPHONE)
|
@@ -13392,6 +13390,10 @@ namespace Catch {
|
13392 | 13390 | filename.erase(0, lastSlash);
|
13393 | 13391 | filename[0] = '#';
|
13394 | 13392 | }
|
| 13393 | + else |
| 13394 | + { |
| 13395 | + filename.insert(0, "#"); |
| 13396 | + } |
13395 | 13397 |
|
13396 | 13398 | auto lastDot = filename.find_last_of('.');
|
13397 | 13399 | if (lastDot != std::string::npos) {
|
@@ -13554,7 +13556,7 @@ namespace Catch {
|
13554 | 13556 |
|
13555 | 13557 | // Handle list request
|
13556 | 13558 | if( Option<std::size_t> listed = list( m_config ) )
|
13557 |
| - return static_cast<int>( *listed ); |
| 13559 | + return (std::min) (MaxExitCode, static_cast<int>(*listed)); |
13558 | 13560 |
|
13559 | 13561 | TestGroup tests { m_config };
|
13560 | 13562 | auto const totals = tests.execute();
|
@@ -15387,7 +15389,7 @@ namespace Catch {
|
15387 | 15389 | }
|
15388 | 15390 |
|
15389 | 15391 | Version const& libraryVersion() {
|
15390 |
| - static Version version( 2, 13, 8, "", 0 ); |
| 15392 | + static Version version( 2, 13, 10, "", 0 ); |
15391 | 15393 | return version;
|
15392 | 15394 | }
|
15393 | 15395 |
|
@@ -17522,12 +17524,20 @@ namespace Catch {
|
17522 | 17524 |
|
17523 | 17525 | #ifndef __OBJC__
|
17524 | 17526 |
|
| 17527 | +#ifndef CATCH_INTERNAL_CDECL |
| 17528 | +#ifdef _MSC_VER |
| 17529 | +#define CATCH_INTERNAL_CDECL __cdecl |
| 17530 | +#else |
| 17531 | +#define CATCH_INTERNAL_CDECL |
| 17532 | +#endif |
| 17533 | +#endif |
| 17534 | + |
17525 | 17535 | #if defined(CATCH_CONFIG_WCHAR) && defined(CATCH_PLATFORM_WINDOWS) && defined(_UNICODE) && !defined(DO_NOT_USE_WMAIN)
|
17526 | 17536 | // Standard C/C++ Win32 Unicode wmain entry point
|
17527 |
| -extern "C" int wmain (int argc, wchar_t * argv[], wchar_t * []) { |
| 17537 | +extern "C" int CATCH_INTERNAL_CDECL wmain (int argc, wchar_t * argv[], wchar_t * []) { |
17528 | 17538 | #else
|
17529 | 17539 | // Standard C/C++ main entry point
|
17530 |
| -int main (int argc, char * argv[]) { |
| 17540 | +int CATCH_INTERNAL_CDECL main (int argc, char * argv[]) { |
17531 | 17541 | #endif
|
17532 | 17542 |
|
17533 | 17543 | return Catch::Session().run( argc, argv );
|
@@ -17890,7 +17900,7 @@ using Catch::Detail::Approx;
|
17890 | 17900 | #define INFO( msg ) (void)(0)
|
17891 | 17901 | #define UNSCOPED_INFO( msg ) (void)(0)
|
17892 | 17902 | #define WARN( msg ) (void)(0)
|
17893 |
| -#define CAPTURE( msg ) (void)(0) |
| 17903 | +#define CAPTURE( ... ) (void)(0) |
17894 | 17904 |
|
17895 | 17905 | #define TEST_CASE( ... ) INTERNAL_CATCH_TESTCASE_NO_REGISTRATION(INTERNAL_CATCH_UNIQUE_NAME( C_A_T_C_H_T_E_S_T_ ))
|
17896 | 17906 | #define TEST_CASE_METHOD( className, ... ) INTERNAL_CATCH_TESTCASE_NO_REGISTRATION(INTERNAL_CATCH_UNIQUE_NAME( C_A_T_C_H_T_E_S_T_ ))
|
|
0 commit comments