We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7530a45 commit 1a3f68dCopy full SHA for 1a3f68d
2 files changed
_xtool/llcppsigfetch/dbg/debug.go
@@ -9,6 +9,7 @@ const (
9
DbgVisitTop
10
DbgProcess
11
DbgGetCurFile
12
+ DbgMacro
13
DbgFlagAll = DbgParse
14
)
15
@@ -47,3 +48,11 @@ func SetDebugGetCurFile() {
47
48
func GetDebugGetCurFile() bool {
49
return flags&DbgGetCurFile != 0
50
}
51
+
52
+func SetDebugMacro() {
53
+ flags |= DbgMacro
54
+}
55
56
+func GetDebugMacro() bool {
57
+ return flags&DbgMacro != 0
58
_xtool/llcppsigfetch/parse/parse.go
@@ -90,7 +90,7 @@ func Do(cfg *ParseConfig) (*Converter, error) {
90
if err != nil {
91
return nil, err
92
93
- if dbg.GetDebugParse() {
+ if dbg.GetDebugMacro() {
94
fmt.Fprintln(os.Stderr, "Have %d Macros", len(pkg.File.Macros))
95
for _, macro := range pkg.File.Macros {
96
fmt.Fprintf(os.Stderr, "Macro %s", macro.Name)
0 commit comments