mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-13 11:23:14 +01:00
Updated the runtest script to build libtangobos-partial.a if it hasn't already been built. Added in signbit() and va_arg!()() to libtangobos-partial.a so more of the phobos dependent DStress tests pass.
23 lines
383 B
D
23 lines
383 B
D
|
|
/*
|
|
* Placed in public domain.
|
|
* Written by Hauke Duden and Walter Bright
|
|
*/
|
|
|
|
/* This is for use with variable argument lists with extern(D) linkage. */
|
|
|
|
module std.stdarg;
|
|
|
|
alias void* va_list;
|
|
|
|
template va_arg(T)
|
|
{
|
|
T va_arg(inout va_list _argptr)
|
|
{
|
|
T arg = *cast(T*)_argptr;
|
|
_argptr = _argptr + ((T.sizeof + int.sizeof - 1) & ~(int.sizeof - 1));
|
|
return arg;
|
|
}
|
|
}
|
|
|