mirror of
https://github.com/ziglang/zig.git
synced 2025-12-11 08:43:09 +00:00
8 lines
161 B
Zig
8 lines
161 B
Zig
const c = @cImport(@cInclude("foo.h"));
|
|
const std = @import("std");
|
|
const assert = std.debug.assert;
|
|
|
|
test "c import" {
|
|
comptime assert(c.NUMBER == 1234);
|
|
}
|