ImportC + nuklear = success!

ryuukk_ ryuukk.dev at gmail.com
Tue Jun 28 15:32:35 UTC 2022


On Monday, 27 June 2022 at 12:00:52 UTC, Max Samukha wrote:
> On Sunday, 26 June 2022 at 21:47:46 UTC, ryuukk_ wrote:
>
>>
>> Thanks Walter for working on ImportC, it already is super 
>> useful,
>
> Probably not until there is a reasonable way to map C files to 
> D modules.

what do you mean exactly?


```D
module nuklear;

public import nuklear_c; // .c file

```


```D
import nk = nuklear; // neat trick

void main()
{
     nk.nk_init() ..
}
```

That's how i do it, works great so far


More information about the Digitalmars-d mailing list