ImportC + -H = bindings

Kapendev alexandroskapretsos at gmail.com
Fri Apr 24 15:46:41 UTC 2026


On Friday, 24 April 2026 at 15:40:13 UTC, Kapendev wrote:
> Yeah, and I think that the compiler doesn't need to do 
> everything the script does. One QoL things would be to 
> automatically change names like `alias` to `alias_` when using 
> the `-H` flag so it's easier for people to modify the output.

Or maybe not. C is weird sometimes lol:

```c
struct debug {
     int value;
};

void debug(struct debug debug) {
     debug.value += 1;
}

void main() {
     struct debug d = {0};
     debug(d);
}
```


More information about the Digitalmars-d mailing list