Some library's C API functions look like this: h3dAddResource h3dDelResource ...
In my nim wrapper I use: {.push dynlib:lib, importc:"h3d$1".} proc AddResource(...) proc DelResource(...) {.pop.} This appends "h3d" before proc name for C API. How can I also make proc names start with lower letters in bulk? Maybe there's a way to pass a translation proc? This would be perfect: {.push dynlib:lib, importc:proc(nimName: string): string = "h3d" & nimName[0].toUpperAscii() & nimName[1..^nimName.len]} proc addResource(...) proc delResource(...)