mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-20 14:53:14 +01:00
19 lines
304 B
D
19 lines
304 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;
|
|
|
|
T va_arg(T)(inout va_list vp)
|
|
{
|
|
va_list vptmp = vp;
|
|
vp += T.sizeof;
|
|
return *cast(T*)vptmp;
|
|
}
|