Skip to content

Commit d81635f

Browse files
Adapting to C++17
1 parent 99108ba commit d81635f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/hicr/core/exceptions.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,21 @@ enum exception_t
6464
*
6565
* \param[in] ... C-Formatted string and its additional arguments
6666
*/
67-
#define HICR_THROW_LOGIC(...) [[unlikely]] HiCR::throwException(HiCR::exceptions::exception_t::logic, __FILE__, __LINE__, __VA_ARGS__)
67+
#define HICR_THROW_LOGIC(...) HiCR::throwException(HiCR::exceptions::exception_t::logic, __FILE__, __LINE__, __VA_ARGS__)
6868

6969
/**
7070
* Macro for throwing a runtime exception in HiCR. It automatically includes additional information in the message, such as line number and source file.
7171
*
7272
* \param[in] ... C-Formatted string and its additional arguments
7373
*/
74-
#define HICR_THROW_RUNTIME(...) [[unlikely]] HiCR::throwException(HiCR::exceptions::exception_t::runtime, __FILE__, __LINE__, __VA_ARGS__)
74+
#define HICR_THROW_RUNTIME(...) HiCR::throwException(HiCR::exceptions::exception_t::runtime, __FILE__, __LINE__, __VA_ARGS__)
7575

7676
/**
7777
* Macro for throwing a fatal exception in HiCR. It automatically includes additional information in the message, such as line number and source file.
7878
*
7979
* \param[in] ... C-Formatted string and its additional arguments
8080
*/
81-
#define HICR_THROW_FATAL(...) [[unlikely]] HiCR::throwException(HiCR::exceptions::exception_t::fatal, __FILE__, __LINE__, __VA_ARGS__)
81+
#define HICR_THROW_FATAL(...) HiCR::throwException(HiCR::exceptions::exception_t::fatal, __FILE__, __LINE__, __VA_ARGS__)
8282

8383
/**
8484
* A class of exceptions that indicate some error in the arguments to a HiCR

0 commit comments

Comments
 (0)