mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 17:12:31 +00:00
bcaa9df5b4
A self-defined macro is one of the form `#define FOO FOO` Those types of macros have never been translated; this change will cause any macros which refer to them to be translated as `@compileError` instead of referring to a non-existent identifier. Closes #12471
13 lines
185 B
Zig
13 lines
185 B
Zig
const c = @cImport({
|
|
@cDefine("FOO", "FOO");
|
|
@cDefine("BAR", "FOO");
|
|
|
|
@cDefine("BAZ", "QUX");
|
|
@cDefine("QUX", "QUX");
|
|
});
|
|
|
|
pub fn main() u8 {
|
|
_ = c;
|
|
return 0;
|
|
}
|