mirror of
https://github.com/ETLCPP/etl.git
synced 2026-10-28 18:07:10 +08:00
error_handler.h: Remove return statements after throw (#1613)
This commit is contained in:
parent
a2da3ed940
commit
a8ab0bbeea
@ -28,7 +28,7 @@
|
|||||||

|

|
||||||

|

|
||||||
|
|
||||||
[](https://www.codacy.com/manual/jwellbelove/etl?utm_source=github.com&utm_medium=referral&utm_content=ETLCPP/etl&utm_campaign=Badge_Grade)
|
[](https://app.codacy.com/gh/ETLCPP/etl/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
||||||
|
|
||||||
[](https://github.com/sponsors/ETLCPP)
|
[](https://github.com/sponsors/ETLCPP)
|
||||||
|
|
||||||
|
|||||||
@ -367,7 +367,6 @@ namespace etl
|
|||||||
{ \
|
{ \
|
||||||
etl::error_handler::error((e)); \
|
etl::error_handler::error((e)); \
|
||||||
throw((e)); \
|
throw((e)); \
|
||||||
return; \
|
|
||||||
} \
|
} \
|
||||||
} while (false) // If the condition fails, calls the error handler then
|
} while (false) // If the condition fails, calls the error handler then
|
||||||
// throws an exception.
|
// throws an exception.
|
||||||
@ -377,7 +376,6 @@ namespace etl
|
|||||||
{ \
|
{ \
|
||||||
etl::error_handler::error((e)); \
|
etl::error_handler::error((e)); \
|
||||||
throw((e)); \
|
throw((e)); \
|
||||||
return (v); \
|
|
||||||
} \
|
} \
|
||||||
} while (false) // If the condition fails, calls the error handler then
|
} while (false) // If the condition fails, calls the error handler then
|
||||||
// throws an exception.
|
// throws an exception.
|
||||||
@ -391,13 +389,11 @@ namespace etl
|
|||||||
do { \
|
do { \
|
||||||
etl::error_handler::error((e)); \
|
etl::error_handler::error((e)); \
|
||||||
throw((e)); \
|
throw((e)); \
|
||||||
return; \
|
|
||||||
} while (false) // Calls the error handler then throws an exception.
|
} while (false) // Calls the error handler then throws an exception.
|
||||||
#define ETL_ASSERT_FAIL_AND_RETURN_VALUE(e, v) \
|
#define ETL_ASSERT_FAIL_AND_RETURN_VALUE(e, v) \
|
||||||
do { \
|
do { \
|
||||||
etl::error_handler::error((e)); \
|
etl::error_handler::error((e)); \
|
||||||
throw((e)); \
|
throw((e)); \
|
||||||
return (v); \
|
|
||||||
} while (false) // Calls the error handler then throws an exception.
|
} while (false) // Calls the error handler then throws an exception.
|
||||||
#else
|
#else
|
||||||
#define ETL_ASSERT(b, e) \
|
#define ETL_ASSERT(b, e) \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user