Mercurial > projects > ldc
view runtime/import/llvmdc/cstdarg.di @ 571:cbd6c8073a32
Changed all '#if linux || __APPLE__' to '#if POSIX' so we can support other platforms too, thanx for the suggestion anders.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 02 Sep 2008 23:10:12 +0200 |
parents | bebc6099fb89 |
children | 6aaa3d3c1183 |
line wrap: on
line source
/* * vararg support for extern(C) functions */ module llvmdc.cstdarg; // Check for the right compiler version(LLVMDC) { // OK } else { static assert(false, "This module is only valid for LLVMDC"); } alias void* va_list; pragma(va_start) void va_start(T)(va_list ap, ref T); pragma(va_arg) T va_arg(T)(va_list ap); pragma(va_end) void va_end(va_list args); pragma(va_copy) void va_copy(va_list dst, va_list src);