Mercurial > projects > ldc
comparison tango/std/c/stdarg.di @ 132:1700239cab2e trunk
[svn r136] MAJOR UNSTABLE UPDATE!!!
Initial commit after moving to Tango instead of Phobos.
Lots of bugfixes...
This build is not suitable for most things.
author | lindquist |
---|---|
date | Fri, 11 Jan 2008 17:57:40 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:5825d48b27d1 | 132:1700239cab2e |
---|---|
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.c.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 } |