mirror of
https://github.com/ziglang/zig.git
synced 2024-12-04 02:48:50 +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);
|
|
}
|