aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dissect.h
diff options
context:
space:
mode:
Diffstat (limited to 'dissect.h')
-rw-r--r--dissect.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dissect.h b/dissect.h
index efe2c0b7..178dba5d 100644
--- a/dissect.h
+++ b/dissect.h
@@ -27,6 +27,11 @@ struct reporter
extern struct symbol *dissect_ctx;
+static inline bool sym_is_local(struct symbol *sym)
+{
+ return sym->kind == 'v' && !(sym->ctype.modifiers & MOD_TOPLEVEL);
+}
+
extern void dissect(struct symbol_list *, struct reporter *);
#endif