# stage2: wrap function prototypes in an inline block\. · gitcafe/zig

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

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

Visibility: public

Requested revision: e18c3f3109cffa76e4369c810f82d36eb02c56af

Requested commit: e18c3f3109cffa76e4369c810f82d36eb02c56af

Commit: e18c3f3109cffa76e4369c810f82d36eb02c56af

Tree: 299eed669838fa6a254bb36765afe23baa855168

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
stage2: wrap function prototypes in an inline block.

Previously, function parameter instructions for function prototypes would be
generated in the parent block. This caused issues in blocks where multiple
prototypes would be generated in, such as the block for struct fields for
example. This change introduces an inline block around every prototype such
that all parameters for a prototype are confined to a unique block.

```

## Parents

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

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