include the abort anyways incase your linter is stupid

v1
Brett 2024-08-03 19:51:20 -04:00
parent e979447de0
commit befd5e0ca1
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -35,6 +35,7 @@ namespace blt
#define BLT_ASSERT(expr) do { \
if (!static_cast<bool>(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<bool>(expr)) { \
blt::b_assert_failed(#expr, fail_message, __FILE__, __LINE__); \
std::abort(); \
} \
} while (0)