# wasm: Rewrite switch_br to use \`br_table\` instead · gitcafe/zig

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

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

Visibility: public

Requested revision: ad38fc11470ad3c2e063ad5739d4f4e84dd495f1

Requested commit: ad38fc11470ad3c2e063ad5739d4f4e84dd495f1

Commit: ad38fc11470ad3c2e063ad5739d4f4e84dd495f1

Tree: 4c8f76bee15790dc4d36453e29551cc5b2586041

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: Rewrite switch_br to use `br_table` instead

This is an initial version, todo:
- Also make this work for u64 values, as the table must be indexed by u32.
- Add support for signed integers.
- Add support for enums.

```

## Parents

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

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