From 9a437ec75a41cc32e716da7d88cf36007f30f268 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Fri, 12 Jul 2024 21:49:02 -0400 Subject: [PATCH] make abort use abort() --- CMakeLists.txt | 2 +- include/blt/std/assert.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a29bb6c..08592a5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 0.18.6) +set(BLT_VERSION 0.18.7) set(BLT_TEST_VERSION 0.0.1) set(BLT_TARGET BLT) diff --git a/include/blt/std/assert.h b/include/blt/std/assert.h index 1b51c5a..0c6f4ef 100644 --- a/include/blt/std/assert.h +++ b/include/blt/std/assert.h @@ -56,6 +56,6 @@ namespace blt #define BLT_THROW(throwable) do {blt::b_throw(throwable.what(), __FILE__, __LINE__); throw throwable;} while(0) -#define BLT_ABORT(message) do {blt::b_abort(message, __FILE__, __LINE__); std::exit(1); } while (0) +#define BLT_ABORT(message) do {blt::b_abort(message, __FILE__, __LINE__); std::abort(); } while (0) #endif //BLT_ASSERT_H