# wasm backend \- Initial enum support · gitcafe/zig

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

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

Visibility: public

Requested revision: b22e22ef55327055e88817ae2d950da4739e488d

Requested commit: b22e22ef55327055e88817ae2d950da4739e488d

Commit: b22e22ef55327055e88817ae2d950da4739e488d

Tree: b9ea437dfe6fb64eb07d09c2e64084ecf27cb8f1

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm backend - Initial enum support

- This adds support for enum values using field indexes
- EmitConstant's signature was changed so it's easier to recursively call it using a different type (enum -> int type).
- Implemented initial support for bitcast which for now just returns the `WValue` of the operand.

```

## Parents

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

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