Mercurial > projects > ldc
comparison tests/testincludes/std/stdarg.d @ 1596:42fc0d955a0d
Updated runtest to always rebuild libtangobos-partial.a in case of updates.
Changed std.stdarg to import ldc.vararg so it has the correct implementation.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Sun, 15 Nov 2009 13:22:02 +0000 |
parents | 628433c343b4 |
children |
comparison
equal
deleted
inserted
replaced
1595:628433c343b4 | 1596:42fc0d955a0d |
---|---|
5 */ | 5 */ |
6 | 6 |
7 /* This is for use with variable argument lists with extern(D) linkage. */ | 7 /* This is for use with variable argument lists with extern(D) linkage. */ |
8 | 8 |
9 module std.stdarg; | 9 module std.stdarg; |
10 | |
11 version(LDC) | |
12 { | |
13 public import ldc.vararg; | |
14 } | |
15 else | |
16 { | |
10 | 17 |
11 alias void* va_list; | 18 alias void* va_list; |
12 | 19 |
13 template va_arg(T) | 20 template va_arg(T) |
14 { | 21 { |
18 _argptr = _argptr + ((T.sizeof + int.sizeof - 1) & ~(int.sizeof - 1)); | 25 _argptr = _argptr + ((T.sizeof + int.sizeof - 1) & ~(int.sizeof - 1)); |
19 return arg; | 26 return arg; |
20 } | 27 } |
21 } | 28 } |
22 | 29 |
30 } |