Files
Catch2/src/catch2/internal
Martin Hořeňovský 55b14e1b34 Update last seen line info in the assertionEnded fast path
This costs us about 1% perf in Debug build and 3% in Release build,
but it is worth it for more precise information during unexpected
exceptions or fatal errors.

Given a simple test case like this
```cpp
TEST_CASE("Hard fail") {
    REQUIRE( 1 == 1 );
    REQUIRE( 2 == 2 );
    throw 1;
    REQUIRE( 3 == 3 );
}
```

Catch2 before this change would report the line info from the
`TEST_CASE` macro as the last seen expression before error. With
this change, it will correctly report the line info from the
`REQUIRE(2 == 2)` assertion as the last seen expression before error.
2025-07-20 18:34:21 +02:00
..
2024-09-13 15:32:49 +02:00
2025-04-26 22:46:42 -06:00
2025-04-29 13:15:34 +02:00
2025-04-29 13:15:34 +02:00
2025-04-27 11:08:41 -06:00
2025-04-29 13:15:34 +02:00
2023-12-23 11:23:32 +01:00
2022-10-28 11:30:15 +02:00
2023-05-06 15:22:02 +02:00
2023-12-23 11:23:32 +01:00
2025-04-26 22:46:42 -06:00
2025-04-27 11:08:41 -06:00
2025-04-26 22:46:42 -06:00
2025-04-27 11:08:41 -06:00
2023-04-29 12:55:51 +02:00