Mercurial > projects > ldc
annotate tango/std/stdarg.di @ 270:d9d5d59873d8 trunk
[svn r291] Fixed a bunch of the old Phobos tests to work with Tango.
Branch statements now emit a new block after it.
Fixed the _adSort runtime function had a bad signature.
Added a missing dot prefix on compiler generated string tables for string switch.
Fixed, PTRSIZE seems like it was wrong on 64bit, now it definitely gets set properly.
author | lindquist |
---|---|
date | Mon, 16 Jun 2008 16:01:19 +0200 |
parents | 1700239cab2e |
children |
rev | line source |
---|---|
132 | 1 /** |
2 * These functions are built-in intrinsics to the compiler. | |
3 * | |
4 * Copyright: Public Domain | |
5 * License: Public Domain | |
6 * Authors: David Friedman | |
7 */ | |
8 module std.stdarg; | |
9 | |
10 version( GNU ) | |
11 { | |
12 private import gcc.builtins; | |
13 alias __builtin_va_list va_list; | |
14 alias __builtin_va_end va_end; | |
15 alias __builtin_va_copy va_copy; | |
16 } | |
17 | |
18 template va_start(T) | |
19 { | |
20 void va_start( out va_list ap, inout T parmn ) | |
21 { | |
22 | |
23 } | |
24 } | |
25 | |
26 template va_arg(T) | |
27 { | |
28 T va_arg( inout va_list ap ) | |
29 { | |
30 return T.init; | |
31 } | |
32 } |