# emit error for extern function · gitcafe/zig

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

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

Visibility: public

Requested revision: 7ce7e2c9d1d43886c93f34b67d32ef77cc0d8a6e

Requested commit: 7ce7e2c9d1d43886c93f34b67d32ef77cc0d8a6e

Commit: 7ce7e2c9d1d43886c93f34b67d32ef77cc0d8a6e

Tree: b983cf44e18da510aa9b9bb02953f02af076c410

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
emit error for extern function

with byvalue return value or parameter.

currently we don't codegen byvalue parameters or return values
correctly for C compatibilty functions so instead of generating
incorrect code, we emit a compile error.

eventually we'll support this feature and remove the compile error.

See #180

```

## Parents

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

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