#How can I create functions based on a comptime string argument?

1 messages · Page 1 of 1 (latest)

coral leaf
#

I would like to have something like this:
WasmVec(u8, "replacement") that generates the struct

struct {
    pub extern "c" fn wasm_replacement_vec_new();
}```
misty quest
#

you can create a function type with @Type and use it in @extern but you cant create a struct like that