diff --git a/aedi/target/special.py b/aedi/target/special.py index cd3c4268..4f4c4311 100644 --- a/aedi/target/special.py +++ b/aedi/target/special.py @@ -75,6 +75,7 @@ class TestDepsTarget(BuildTarget): '-arch', 'x86_64', '-arch', 'arm64', '-std=c++17', + '-include', os.path.join(test_path, 'aedi.h'), '-o', exe_name, entry.path, ] diff --git a/test/aedi.h b/test/aedi.h new file mode 100644 index 00000000..25f0c4e4 --- /dev/null +++ b/test/aedi.h @@ -0,0 +1,3 @@ +#define AEDI_EXPECT(CODE) if (!(CODE)) { puts(#CODE); return 1; } + +extern "C" int puts(const char*);