ImportC and #pragma pack

Paulo Pinto pjmlp at progtools.org
Thu Sep 30 12:23:35 UTC 2021


On Thursday, 30 September 2021 at 11:54:21 UTC, Guillaume Piolat 
wrote:
> On Thursday, 30 September 2021 at 09:05:50 UTC, Paulo Pinto 
> wrote:
>>
>> Windows, Linux/Android and macOS headers are full of C 
>> extensions, so I would say for ImportC to be of value for 
>> systems programming on those platforms, it needs to at very 
>> least be able to understand those extensions.
>
> I'm looking at the VC headers coming with Visual Studio, and it 
> seems you can go a long way with:
> #pragma once
> #pragma push_macro/pop_macro
> #pragma pack

Until you need to ingest stuff using SAL, COM, linker directives, 
calling conventions, Windows exception handling.

All of which can pop up on header files.




More information about the Digitalmars-d mailing list