Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lphobos/std/stdarg.d Fri Oct 26 15:14:51 2007 +0200 @@ -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; +}