annotate lphobos/std/stdarg.d @ 65:d4a678905d5e
trunk
[svn r69] forgot std.stdarg
author |
lindquist |
date |
Fri, 26 Oct 2007 15:14:51 +0200 |
parents |
|
children |
fb265a6efea1 |
rev |
line source |
65
|
1
|
|
2 /*
|
|
3 * Placed in public domain.
|
|
4 * Written by Hauke Duden and Walter Bright
|
|
5 */
|
|
6
|
|
7 /* This is for use with variable argument lists with extern(D) linkage. */
|
|
8
|
|
9 module std.stdarg;
|
|
10
|
|
11 alias void* va_list;
|
|
12
|
|
13 T va_arg(T)(inout va_list vp)
|
|
14 {
|
|
15 va_list vptmp = vp;
|
|
16 vp += T.sizeof;
|
|
17 return *cast(T*)vptmp;
|
|
18 }
|