2018-03-17 15:19:23 -07:00
|
|
|
const c = @cImport(@cInclude("foo.h"));
|
|
|
|
const std = @import("std");
|
2019-02-08 15:18:47 -08:00
|
|
|
const testing = std.testing;
|
2018-03-17 15:19:23 -07:00
|
|
|
|
|
|
|
test "c import" {
|
2019-02-08 15:18:47 -08:00
|
|
|
comptime testing.expect(c.NUMBER == 1234);
|
2018-03-17 15:19:23 -07:00
|
|
|
}
|