From 86568e4b92315c7d5957b8127de9dc15f84e7971 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Mon, 14 Jun 2021 02:40:45 +0300 Subject: [PATCH] add crunch for condition that does not work --- ScoreboardExt/Logger.uci | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ScoreboardExt/Logger.uci b/ScoreboardExt/Logger.uci index 714c862..60bc77b 100644 --- a/ScoreboardExt/Logger.uci +++ b/ScoreboardExt/Logger.uci @@ -1,9 +1,9 @@ -`define scelog(text, cond) `log(`text, `cond, 'ScoreboardExt') +`define scelog(text, cond) `log(`text, `cond, 'ScoreboardExt') -`define info(text) `scelog("[INFO]"@`text, true) -`define warning(text) `scelog("[WARNING]"@`text, true) -`define error(text) `scelog("[ERROR]"@`text, true) +`define info(text) `scelog("[INFO]"@`text, true) +`define warning(text) `scelog("[WARNING]"@`text, true) +`define error(text) `scelog("[ERROR]"@`text, true) -`define debug(text) `scelog("[DEBUG]"@`text, `bEnableDebug) -`define callstack() `scelog("[CALLSTACK]"@`Location@"ROLE="$ROLE, `bEnableCallstack) -`define callstack_static(text) `scelog("[CALLSTACK]"@`text, `bEnableCallstack) \ No newline at end of file +`define debug(text) if (`bEnableDebug) { `scelog("[DEBUG]"@`text, `bEnableDebug); } +`define callstack() if (`bEnableCallstack) { `scelog("[CALLSTACK]"@`Location@"ROLE="$ROLE, `bEnableCallstack); } +`define callstack_static(text) if (`bEnableCallstack) { `scelog("[CALLSTACK]"@`text, `bEnableCallstack); } \ No newline at end of file