mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-08-16 11:20:05 +02:00
[svn r69] forgot std.stdarg
This commit is contained in:
18
lphobos/std/stdarg.d
Normal file
18
lphobos/std/stdarg.d
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
/*
|
||||
* 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;
|
||||
}
|
||||
Reference in New Issue
Block a user