Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

root/trunk/std/stdarg.di

Revision 3398, 0.5 kB (checked in by larsivi, 8 months ago)

Reverting stdarg changes, [3397], because GDC is crap.

  • Property svn:eol-style set to native
Line 
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 }
Note: See TracBrowser for help on using the browser.