@@ -41,7 +41,7 @@ TEST_CASE("test_result_void", "[error_handling][Result]") {
4141
4242TEST_CASE (" test_result_void_in_main" , " [error_handling][Result]" ) {
4343 auto main_func = [&](bool is_error) -> Result<void > {
44- YSTDLIB_TRYV (cVoidFunc (is_error));
44+ YSTDLIB_ERROR_HANDLING_TRYV (cVoidFunc (is_error));
4545 return success ();
4646 };
4747 auto const main_no_error{main_func (false )};
@@ -65,7 +65,7 @@ TEST_CASE("test_result_int", "[error_handling][Result]") {
6565
6666TEST_CASE (" test_result_int_in_main" , " [error_handling][Result]" ) {
6767 auto main_func = [&](bool is_error) -> Result<void > {
68- YSTDLIB_TRYV (cIntFunc (is_error));
68+ YSTDLIB_ERROR_HANDLING_TRYV (cIntFunc (is_error));
6969 return success ();
7070 };
7171 auto const main_no_error{main_func (false )};
@@ -78,7 +78,9 @@ TEST_CASE("test_result_int_in_main", "[error_handling][Result]") {
7878}
7979
8080TEST_CASE (" test_result_int_propagate" , " [error_handling][Result]" ) {
81- auto main_func = [&](bool is_error) -> Result<int > { return YSTDLIB_TRYX (cIntFunc (is_error)); };
81+ auto main_func = [&](bool is_error) -> Result<int > {
82+ return YSTDLIB_ERROR_HANDLING_TRYX (cIntFunc (is_error));
83+ };
8284 auto const main_no_error{main_func (false )};
8385 REQUIRE_FALSE (main_no_error.has_error ());
8486 REQUIRE ((cTestInt == main_no_error.value ()));
0 commit comments