# stage2: implementation of \`@setEvalBranchQuota\`: · gitcafe/zig

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

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

Visibility: public

Requested revision: 638f93ebdceb860974aae54b6f8c2c9f52157305

Requested commit: 638f93ebdceb860974aae54b6f8c2c9f52157305

Commit: 638f93ebdceb860974aae54b6f8c2c9f52157305

Tree: 9197ddee7f48b05a2f77ac6f46018ab0299c26ae

Author: g-w1

Committer: Andrew Kelley

## Message

````
stage2: implementation of `@setEvalBranchQuota`:

`@setEvalBranchQuota` can be called before the comptime/inline call
stack is created.

For example:

```zig
@setEvalBranchQuota(100);
comptime {
    while (true) {}
}
```

Here we need to set the branch_quota before the comptime block creates a
scope for the branch_count.

````

## Parents

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

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