Skip to content

Commit 10c0e2d

Browse files
committed
refactor(examples/pattern/command.zig): exclude on Windows
1 parent 1274cff commit 10c0e2d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/examples/pattern/command.zig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// source: https://gameprogrammingpatterns.com/
22
const std = @import("std");
3+
const builtin = @import("builtin");
34

45
const GameActor = struct {
56
x: i8,
@@ -55,6 +56,8 @@ const Command = struct {
5556
};
5657

5758
pub fn main() !void {
59+
if (builtin.os.tag == .windows) @panic("Not implemented for Windows");
60+
5861
var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator);
5962
defer arena.deinit();
6063

0 commit comments

Comments
 (0)