Skip to content

Instantly share code, notes, and snippets.

@LemonBoy
Created April 26, 2021 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LemonBoy/fb3d563428d175bcfc572c23fc9f81bb to your computer and use it in GitHub Desktop.
Save LemonBoy/fb3d563428d175bcfc572c23fc9f81bb to your computer and use it in GitHub Desktop.
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