update: use debug colors

This commit is contained in:
GreasrySlug 2023-01-26 14:46:44 +09:00
parent db12bb1e2d
commit 97cde41592
5 changed files with 21 additions and 19 deletions

View file

@ -33,7 +33,7 @@ macro_rules! debug_call_info {
($self: ident) => {
$self.level += 1;
log!(
c GREEN,
c DEBUG_MAIN,
"\n{} ({}) entered {}, cur: {}",
"".repeat(($self.level as f32 / 4.0).floor() as usize),
$self.level,
@ -48,7 +48,7 @@ macro_rules! debug_exit_info {
($self: ident) => {
$self.level -= 1;
log!(
c GREEN,
c DEBUG_MAIN,
"\n{} ({}) exit {}, cur: {}",
"".repeat(($self.level as f32 / 4.0).floor() as usize),
$self.level,
@ -228,7 +228,7 @@ impl Parser {
pub(crate) fn stack_dec(&mut self, fn_name: &str) {
self.level -= 1;
log!(
c GREEN,
c DEBUG_MAIN,
"\n{} ({}) exit {}, cur: {}",
"".repeat((self.level as f32 / 4.0).floor() as usize),
self.level,