Created
April 26, 2021 14:04
-
-
Save LemonBoy/fb3d563428d175bcfc572c23fc9f81bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/translate_c.zig b/src/translate_c.zig | |
index 89c977877..fe8cb95b6 100644 | |
--- a/src/translate_c.zig | |
+++ b/src/translate_c.zig | |
@@ -4632,7 +4632,10 @@ fn transPreprocessorEntities(c: *Context, unit: *clang.ASTUnit) Error!void { | |
defer tok_list.deinit(); | |
const scope = c.global_scope; | |
+ std.debug.print("iter: {} {}\n", .{ it.I, it_end.I }); | |
+ | |
while (it.I != it_end.I) : (it.I += 1) { | |
+ std.debug.print("entity: {}\n", .{entity.getKind()}); | |
const entity = it.deref(); | |
tok_list.items.len = 0; | |
switch (entity.getKind()) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment