Skip to content

Commit 5e74a42

Browse files
committed
Update catch in contrib to v2.13.10
1 parent 9087ce2 commit 5e74a42

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

contrib/catch2/README.contrib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Source: https://github.com/catchorg/Catch2
2-
Revision: v2.13.9
2+
Revision: v2.13.10

contrib/catch2/include/catch.hpp

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
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
44
* ----------------------------------------------------------
55
* This file has been merged from multiple headers. Please don't edit it directly
66
* Copyright (c) 2022 Two Blue Cubes Ltd. All rights reserved.
@@ -15,7 +15,7 @@
1515

1616
#define CATCH_VERSION_MAJOR 2
1717
#define CATCH_VERSION_MINOR 13
18-
#define CATCH_VERSION_PATCH 9
18+
#define CATCH_VERSION_PATCH 10
1919

2020
#ifdef __clang__
2121
# pragma clang system_header
@@ -7395,8 +7395,6 @@ namespace Catch {
73957395
template <typename T, bool Destruct>
73967396
struct ObjectStorage
73977397
{
7398-
using TStorage = typename std::aligned_storage<sizeof(T), std::alignment_of<T>::value>::type;
7399-
74007398
ObjectStorage() : data() {}
74017399

74027400
ObjectStorage(const ObjectStorage& other)
@@ -7439,7 +7437,7 @@ namespace Catch {
74397437
return *static_cast<T*>(static_cast<void*>(&data));
74407438
}
74417439

7442-
TStorage data;
7440+
struct { alignas(T) unsigned char data[sizeof(T)]; } data;
74437441
};
74447442
}
74457443

@@ -7949,7 +7947,7 @@ namespace Catch {
79497947
#if defined(__i386__) || defined(__x86_64__)
79507948
#define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */
79517949
#elif defined(__aarch64__)
7952-
#define CATCH_TRAP() __asm__(".inst 0xd4200000")
7950+
#define CATCH_TRAP() __asm__(".inst 0xd43e0000")
79537951
#endif
79547952

79557953
#elif defined(CATCH_PLATFORM_IPHONE)
@@ -13558,7 +13556,7 @@ namespace Catch {
1355813556

1355913557
// Handle list request
1356013558
if( Option<std::size_t> listed = list( m_config ) )
13561-
return static_cast<int>( *listed );
13559+
return (std::min) (MaxExitCode, static_cast<int>(*listed));
1356213560

1356313561
TestGroup tests { m_config };
1356413562
auto const totals = tests.execute();
@@ -15391,7 +15389,7 @@ namespace Catch {
1539115389
}
1539215390

1539315391
Version const& libraryVersion() {
15394-
static Version version( 2, 13, 9, "", 0 );
15392+
static Version version( 2, 13, 10, "", 0 );
1539515393
return version;
1539615394
}
1539715395

@@ -17526,12 +17524,20 @@ namespace Catch {
1752617524

1752717525
#ifndef __OBJC__
1752817526

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+
1752917535
#if defined(CATCH_CONFIG_WCHAR) && defined(CATCH_PLATFORM_WINDOWS) && defined(_UNICODE) && !defined(DO_NOT_USE_WMAIN)
1753017536
// 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 * []) {
1753217538
#else
1753317539
// Standard C/C++ main entry point
17534-
int main (int argc, char * argv[]) {
17540+
int CATCH_INTERNAL_CDECL main (int argc, char * argv[]) {
1753517541
#endif
1753617542

1753717543
return Catch::Session().run( argc, argv );

0 commit comments

Comments
 (0)