Asking for advice - assert for ImportC

Walter Bright newshound2 at digitalmars.com
Fri Apr 29 17:18:59 UTC 2022


On 4/28/2022 1:02 AM, duser wrote:
> maybe `_Assert`? similar to `_Static_assert`
> 
> it almost looks like something you could expect to see in a future C standard
> 
> adding a prefix to the double-underscore name would be the safe but boring 
> option, something like `__d_assert` or `__importc_assert`

I like __importc_assert, except it's a bit long.

I've also thought of __check() which is congruent with the compiler switch 
-checkxxxxx


More information about the Digitalmars-d mailing list