[Issue 24310] ImportC: varargs from Microsoft header incompatible with va_start

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 4 15:26:45 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24310

--- Comment #7 from kinke <kinke at gmx.net> ---
(In reply to Walter Bright from comment #4)
> I suspect it might work if we added to stdarg.d:
> 
>     void __va_start(T)(va_list* ap, ref T parmn)
>     {
>         va_start(*ap, parmn);
>     }
> 
> and to __builtins.di:
> 
>     alias __va_start = imported!"core.stdc.stdarg".__va_start;

I doubt it - this would probably need to be force-inlined at the AST level to
work properly.

--


More information about the Digitalmars-d-bugs mailing list