Feature request: generate `inline` for simple wrapper functions
pixelherodev opened this issue · 0 comments
pixelherodev commented
A lot of generated functions are merely small wrappers around C functions, e.g.:
pub fn makeImage(desc: ImageDesc) Image {
return sg_make_image(&desc);
}
These will almost certainly be inlined by the compiler, but generating them as pub inline fn
would ensure it (and, presumably, mean less work on the compiler for optimization, since it doesn't have to check whether to do optimization).