File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 99 DbgVisitTop
1010 DbgProcess
1111 DbgGetCurFile
12+ DbgMacro
1213 DbgFlagAll = DbgParse
1314)
1415
@@ -47,3 +48,11 @@ func SetDebugGetCurFile() {
4748func GetDebugGetCurFile () bool {
4849 return flags & DbgGetCurFile != 0
4950}
51+
52+ func SetDebugMacro () {
53+ flags |= DbgMacro
54+ }
55+
56+ func GetDebugMacro () bool {
57+ return flags & DbgMacro != 0
58+ }
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ func Do(cfg *ParseConfig) (*Converter, error) {
9090 if err != nil {
9191 return nil , err
9292 }
93- if dbg .GetDebugParse () {
93+ if dbg .GetDebugMacro () {
9494 fmt .Fprintln (os .Stderr , "Have %d Macros" , len (pkg .File .Macros ))
9595 for _ , macro := range pkg .File .Macros {
9696 fmt .Fprintf (os .Stderr , "Macro %s" , macro .Name )
You can’t perform that action at this time.
0 commit comments