Jacek Caban (@jacek) commented about dlls/jscript/arraybuf.c:
.call = Function_value, };
+#define TYPEDARRAY_LIST \ +X(Int8Array, JSCLASS_INT8ARRAY, INT8, to_int32, INT) \
I think it would be good to avoid using macros where possible, especially for generating entire functions. Instead, you could introduce typed array descriptors that hold the class, element size, and element getters/setters, e.g. `jsval_t get(const void*)` and `void set(void*, jsval_t)`. The constructor would take the descriptor, and the implementation could retrieve it from the "this" object when needed. Some sort of macro may still be useful, but something like: ``` #define ALL_TYPED_ARRAYS \ X(Int16Array) \ ... ``` should be enough. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9275#note_119820