importC reflection bugs

Walter Bright newshound2 at digitalmars.com
Mon Feb 26 17:10:13 UTC 2024


On 2/26/2024 6:07 AM, Dakota wrote:
> I want to use importC reflection c header then generate D interface.
> 
> one problem I can not workaround is to determine `size_t` `ptrdiff_t` 
> `uintptr_t`, they become `ulong`, `long`, `ulong`.
> 
> 
> I need a method to let the D CTFE know the imported C type original type( 
> `size_t` but not `ulong`).  Is this possible?


Currently there is not a way to do that. ImportC eagerly resolves typedefs.


More information about the Digitalmars-d mailing list