mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 08:02:32 +00:00
8 lines
169 B
Zig
8 lines
169 B
Zig
const c = @cImport(@cInclude("foo.h"));
|
|
const std = @import("std");
|
|
const testing = std.testing;
|
|
|
|
test "c import" {
|
|
comptime try testing.expect(c.NUMBER == 1234);
|
|
}
|