From befd5e0ca1135c467f194d1d0e5691d301f93a34 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Sat, 3 Aug 2024 19:51:20 -0400 Subject: [PATCH] include the abort anyways incase your linter is stupid --- CMakeLists.txt | 2 +- include/blt/std/assert.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8828624..bed19f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 0.18.18) +set(BLT_VERSION 0.18.19) 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 827fddf..f228eca 100644 --- a/include/blt/std/assert.h +++ b/include/blt/std/assert.h @@ -35,6 +35,7 @@ namespace blt #define BLT_ASSERT(expr) do { \ if (!static_cast(expr)) { \ blt::b_assert_failed(#expr, nullptr, __FILE__, __LINE__); \ + std::abort(); \ } \ } while (0) @@ -45,6 +46,7 @@ namespace blt #define BLT_ASSERT_MSG(expr, fail_message) do { \ if (!static_cast(expr)) { \ blt::b_assert_failed(#expr, fail_message, __FILE__, __LINE__); \ + std::abort(); \ } \ } while (0)