# translate-c: Improve function pointer handling · gitcafe/zig

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

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

Visibility: public

Requested revision: 221f1d898c39e9ea25f1d7fc9642bfbb3c97e894

Requested commit: 221f1d898c39e9ea25f1d7fc9642bfbb3c97e894

Commit: 221f1d898c39e9ea25f1d7fc9642bfbb3c97e894

Tree: e7fd7ba2007c9af7cf55c9114b677b62b0186a71

Author: Evan Haas

Committer: Veikka Tuominen

## Message

```
translate-c: Improve function pointer handling

Omit address-of operator if operand is a function.

Improve handling of function-call translation when using function pointers

Fixes #4124

```

## Parents

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

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