1
0
mirror of https://github.com/armink/EasyLogger.git synced 2025-01-19 07:42:52 +08:00

Merge pull request #130 from slark-yuxj/master

Add assert judgment
This commit is contained in:
朱天龙 (Armink) 2022-12-15 14:55:51 +08:00 committed by GitHub
commit 20f13ca2c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}