rsys

Basic data structures and low-level features
git clone git://git.meso-star.fr/rsys.git
Log | Files | Refs | README | LICENSE

commit 7a1c347d2f6ee615d1b5f2856152ff32b4e69cff
parent bb1295632785c0c72561883b10b728425eb18be1
Author: vaplv <vaplv@free.fr>
Date:   Fri,  1 Jul 2016 11:22:26 +0200

Update the FATAL macro

Use the abort function to stop the program execution rather than exit

Diffstat:
Mcmake/CMakeLists.txt | 3++-
Msrc/rsys.h | 2+-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -36,7 +36,7 @@ include(rcmake) ################################################################################ set(VERSION_MAJOR 0) set(VERSION_MINOR 3) -set(VERSION_PATCH 0) +set(VERSION_PATCH 1) set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}) set(RSYS_FILES_SRC @@ -161,6 +161,7 @@ if(NOT NO_TEST) new_test(test_float33 ${MATH_LIB}) new_test(test_float44 rsys) new_test(test_free_list rsys) + new_test(test_func_name) new_test(test_hash_table rsys) new_test(test_library rsys) new_test(test_list rsys) diff --git a/src/rsys.h b/src/rsys.h @@ -213,7 +213,7 @@ { \ fprintf(stderr, Msg); \ ASSERT(0); \ - exit(-1); \ + abort(); \ } (void)0 #define CHECK(A, B) \