Skip to content

Commit e2cfae6

Browse files
authored
Merge pull request #531 from beached/v2
Moved signed integer library to it's own repo daw_integer
2 parents 4e4c2d0 + 54add56 commit e2cfae6

10 files changed

+15
-2523
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
cmake_minimum_required( VERSION 3.14 )
1010

1111
project( "daw-header-libraries"
12-
VERSION "2.113.1"
12+
VERSION "2.114.0"
1313
DESCRIPTION "Various headers"
1414
HOMEPAGE_URL "https://github.com/beached/header_libraries"
1515
LANGUAGES C CXX

include/daw/daw_check_exceptions.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ namespace daw::check_except_detail {
4848
}
4949

5050
template<typename>
51-
[[noreturn, maybe_unused]] DAW_ATTRIB_NOINLINE void terminate_error( ) {
51+
[[noreturn, maybe_unused]] DAW_ATTRIB_NOINLINE inline void terminate_error( ) {
5252
std::terminate( );
5353
}
5454
} // namespace
@@ -61,7 +61,7 @@ namespace daw::check_except_detail {
6161
::daw::check_except_detail::throw_error( ExceptionType{ } )
6262
#else
6363
#define DAW_THROW_OR_TERMINATE( ExceptionType, ... ) \
64-
::daw::check_except_detail::terminate_error<ExceptionType>( )
64+
::daw::check_except_detail::terminate_error( )
6565
#define DAW_THROW_OR_TERMINATE_NA( ExceptionType ) \
66-
::daw::check_except_detail::terminate_error<ExceptionType>( )
66+
::daw::check_except_detail::terminate_error( )
6767
#endif

include/daw/daw_cpp_feature_check.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,14 @@ inline constexpr bool daw_has_cx_cmath = false;
160160
#define DAW_HAS_CPP_CONSTEVAL
161161
#endif
162162
#endif
163+
164+
#if defined( __cpp_constinit )
165+
#if __cpp_constinit >= 201907L
166+
#define DAW_HAS_CPP_CONSTINIT
167+
#define DAW_CONSTINIT constinit
168+
#endif
169+
#endif
170+
171+
#if not defined( DAW_CONSTINIT )
172+
#define DAW_CONSTINIT
173+
#endif

0 commit comments

Comments
 (0)