Mercurial > projects > ldc
view runtime/import/llvmdc/cstdarg.di @ 650:aa6a0b7968f7
Added test case for bug #100
Removed dubious check for not emitting static private global in other modules without access. This should be handled properly somewhere else, it's causing unresolved global errors for stuff that should work (in MiniD)
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sun, 05 Oct 2008 17:28:15 +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);