|
1 | 1 | /* |
2 | | - * Catch v2.13.9 |
3 | | - * Generated: 2022-04-12 22:37:23.260201 |
| 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 9 |
| 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) |
@@ -13558,7 +13556,7 @@ namespace Catch { |
13558 | 13556 |
|
13559 | 13557 | // Handle list request |
13560 | 13558 | if( Option<std::size_t> listed = list( m_config ) ) |
13561 | | - return static_cast<int>( *listed ); |
| 13559 | + return (std::min) (MaxExitCode, static_cast<int>(*listed)); |
13562 | 13560 |
|
13563 | 13561 | TestGroup tests { m_config }; |
13564 | 13562 | auto const totals = tests.execute(); |
@@ -15391,7 +15389,7 @@ namespace Catch { |
15391 | 15389 | } |
15392 | 15390 |
|
15393 | 15391 | Version const& libraryVersion() { |
15394 | | - static Version version( 2, 13, 9, "", 0 ); |
| 15392 | + static Version version( 2, 13, 10, "", 0 ); |
15395 | 15393 | return version; |
15396 | 15394 | } |
15397 | 15395 |
|
@@ -17526,12 +17524,20 @@ namespace Catch { |
17526 | 17524 |
|
17527 | 17525 | #ifndef __OBJC__ |
17528 | 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 | + |
17529 | 17535 | #if defined(CATCH_CONFIG_WCHAR) && defined(CATCH_PLATFORM_WINDOWS) && defined(_UNICODE) && !defined(DO_NOT_USE_WMAIN) |
17530 | 17536 | // Standard C/C++ Win32 Unicode wmain entry point |
17531 | | -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 * []) { |
17532 | 17538 | #else |
17533 | 17539 | // Standard C/C++ main entry point |
17534 | | -int main (int argc, char * argv[]) { |
| 17540 | +int CATCH_INTERNAL_CDECL main (int argc, char * argv[]) { |
17535 | 17541 | #endif |
17536 | 17542 |
|
17537 | 17543 | return Catch::Session().run( argc, argv ); |
|
0 commit comments