File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 )
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ func SetDebugCollectFuncInfo() {
5151}
5252
5353func GetDebugCollectFuncInfo () bool {
54- return false & DbgCollectFuncInfo != 0
54+ return flags & DbgCollectFuncInfo != 0
5555}
5656
5757func SetDebugNewSymbol () {
You can’t perform that action at this time.
0 commit comments