Closed PragmaTwice closed 1 year ago
Thanks! Would it be possible to take the name of the macro as an argument rather than assuming the name X
works? (I've never seen this pattern before myself)
Would it be possible to take the name of the macro as an argument rather than assuming the name
X
works?
Sure! Done.
In the previous code, there are repeated instances of
switch
case
code related toValKind
, which makes the code redundant and difficult to maintain.In this PR, I have created an X macro
WASMTIME_FOR_EACH_VAL_KIND
to store this information centrally and expand it during processing.About X macro: https://en.wikipedia.org/wiki/X_macro