From 817c1fd14c9b9b3fc93922f7ea06d9edfd53c63b Mon Sep 17 00:00:00 2001 From: Clement Sibille Date: Mon, 20 May 2024 00:44:59 +0900 Subject: Add log levels to log macros --- src/lisiblestd/assert.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lisiblestd/assert.h') diff --git a/src/lisiblestd/assert.h b/src/lisiblestd/assert.h index 9bd7514..7a9ce46 100644 --- a/src/lisiblestd/assert.h +++ b/src/lisiblestd/assert.h @@ -8,14 +8,14 @@ extern void exit(int); #define LSTD_ASSERT(expr) \ do { \ if (!(expr)) { \ - LOG("Assertion failed:\n\t%s", #expr); \ + LOG(LogLevel_Error, "Assertion failed:\n\t%s", #expr); \ exit(1); \ } \ } while (0) #define LSTD_UNIMPLEMENTED() \ do { \ - LOG0("Unimplemented code reached"); \ + LOG0(LogLevel_Error, "Unimplemented code reached"); \ exit(1); \ } while (0) -- cgit v1.2.3