# translate-c: Don't add self-defined macros to global name table · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/bcaa9df5b42747577dcb529a99f6da6d69e09309)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: bcaa9df5b42747577dcb529a99f6da6d69e09309

Requested commit: bcaa9df5b42747577dcb529a99f6da6d69e09309

Commit: bcaa9df5b42747577dcb529a99f6da6d69e09309

Tree: 3e3a96c92a7db9c2da04d8a1e09d1eae8c106965

Author: Evan Haas

Committer: Veikka Tuominen

## Message

```
translate-c: Don't add self-defined macros to global name table

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

```

## Parents

- [d6bb9af18da6f1e6d4e62a111c69a58c91b21a7e](https://git.cafe/gitcafe/zig/commit/d6bb9af18da6f1e6d4e62a111c69a58c91b21a7e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/bcaa9df5b42747577dcb529a99f6da6d69e09309?format=markdown)
