From 647478e84e551e9d3d50d9485ddb7a66783fc950 Mon Sep 17 00:00:00 2001 From: yuxiaojun Date: Thu, 15 Dec 2022 14:40:37 +0800 Subject: [PATCH] Add assert judgment --- easylogger/src/elog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/easylogger/src/elog.c b/easylogger/src/elog.c index 4b8fd5a..1bc3b88 100755 --- a/easylogger/src/elog.c +++ b/easylogger/src/elog.c @@ -284,6 +284,8 @@ void elog_set_output_enabled(bool enabled) { * @param enabled TRUE: enable FALSE:disable */ void elog_set_text_color_enabled(bool enabled) { + ELOG_ASSERT((enabled == false) || (enabled == true)); + elog.text_color_enabled = enabled; }