wasmfx / wasmfxtime

A fork of wasmtime (a fast and secure runtime for WebAssembly) supporting the WasmFX instruction set
https://wasmfx.dev/
Apache License 2.0
19 stars 1 forks source link

Hygienic `call_builtin` macro. #153

Closed dhil closed 8 months ago

dhil commented 8 months ago

This patch tweaks the call_builtin macro ever-so-slightly by making sure it is hygienic (i.e. generated names doesn't clash with those in the current scope) by enclosing generated names in local scopes.

dhil commented 8 months ago

Ah excellent. I suspected that might be the case. I will merge this just for the prettier names.