mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-31 07:38:02 +00:00
update: use debug colors
This commit is contained in:
parent
db12bb1e2d
commit
97cde41592
5 changed files with 21 additions and 19 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue