Skip to content

Commit

Permalink
Workaround for #282
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-z committed Apr 17, 2023
1 parent faec3b1 commit 6a1120b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion libs/zflecs/src/zflecs.zig
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ pub const iter_t = extern struct {
interrupted_by: entity_t,
priv: iter_private_t,
next: iter_next_action_t,
callback: iter_action_t,
callback: *const fn (it: *iter_t) callconv(.C) void, // TODO: Compiler bug. Should be `iter_action_t`.
fini: iter_fini_action_t,
chain_it: ?*iter_t,

Expand Down Expand Up @@ -2086,7 +2086,16 @@ pub const os = struct {
}
};
//--------------------------------------------------------------------------------------------------
test {
//std.testing.refAllDecls(@This());
}
comptime {
_ = @import("tests.zig");
_ = run_action_t;
_ = iter_init_action_t;
_ = iter_fini_action_t;
_ = iter_action_t;
_ = iter_next_action_t;
_ = iter_t;
}
//--------------------------------------------------------------------------------------------------

0 comments on commit 6a1120b

Please sign in to comment.