Skip to content

Commit 4ac0134

Browse files
committed
remove exit
1 parent 9b7914b commit 4ac0134

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

gpu.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ inline TensorPool::~TensorPool() {
647647

648648
/**
649649
* @brief Checks a condition and logs an error message if the condition is
650-
* false. In debug mode, it will also exit the program with an error code.
650+
* false.
651651
* @param[in] condition The condition to check.
652652
* @param[in] message The error message to log if the condition is false.
653653
* @param[in] file The source file where the check is performed.
@@ -658,7 +658,6 @@ inline void check(bool condition, const char *message,
658658
const char *file = "unkown", int line = -1) {
659659
if (!condition) {
660660
LOG(kDefLog, kError, "Error in file %s line %d:\n%s", file, line, message);
661-
exit(1);
662661
} else {
663662
LOG(kDefLog, kTrace, "Success in file %s line %d:\n%s", file, line,
664663
message);

0 commit comments

Comments
 (0)