summaryrefslogtreecommitdiffstats
path: root/src/lisiblestd/assert.h
diff options
context:
space:
mode:
authorClement Sibille <clements+git@lisible.xyz>2024-05-20 00:44:59 +0900
committerClement Sibille <clements+git@lisible.xyz>2024-05-20 01:28:21 +0900
commit817c1fd14c9b9b3fc93922f7ea06d9edfd53c63b (patch)
tree047b07b108a08c7dd0bd2f40bafa79bfb49dd9c4 /src/lisiblestd/assert.h
parent399be44fbc3767e7c1ff505119f9e07ee25b1078 (diff)
Add log levels to log macros
Diffstat (limited to '')
-rw-r--r--src/lisiblestd/assert.h4
1 files changed, 2 insertions, 2 deletions
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)
Go back to lisible.xyz