🎨 improve format of code

This commit is contained in:
ValKmjolnir
2022-10-28 23:28:15 +08:00
parent c705b75513
commit d121dcd630
14 changed files with 223 additions and 188 deletions
+2 -5
View File
@@ -1,5 +1,4 @@
#ifndef __NASAL_DBG_H__
#define __NASAL_DBG_H__
#pragma once
#include "nasal_err.h"
#include "nasal_vm.h"
@@ -126,7 +125,7 @@ void debugger::stepinfo()
for(u32 i=begin;i<end && bytecode[i].op!=op_exit;++i)
std::cout
<<(i==pc?back_white:reset)<<(i==pc?"--> ":" ")
<<codestream(bytecode[i],i,num_table,str_table,files)
<<codestream(bytecode[i],i,cnum,cstr,files)
<<reset<<"\n";
stackinfo(10);
}
@@ -399,5 +398,3 @@ mcallh: dbg(o_mcallh,op_mcallh);
ret: dbg(o_ret ,op_ret );
#endif
}
#endif