Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1ecc00f

Browse files
committed
Updated assert_fatal.h
1 parent 7cdadd1 commit 1ecc00f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

buildcc/lib/env/include/env/assert_fatal.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
namespace buildcc::env {
2525

2626
/**
27-
* @brief During Release -> std::exit
27+
* @brief During Release ->
28+
* NOT THREADED : std::exit
29+
* THREADED : throw std::exception (it is wrong to exit
30+
* when in a threaded state. We want to handle the exception and gracefully
31+
* exit)
2832
* During Unit Test -> throw std::exception
2933
*/
3034
void assert_handle_fatal();

0 commit comments

Comments
 (0)