Mercurial > projects > ldc
view runtime/import/ldc/cstdarg.di @ 836:14c3319ac1bb
This ''should'' fix #139 , I failed to produce a testcase, but I would imagine this to be correct, and it removes '''that''' error when building Hybrid.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 09 Dec 2008 03:01:19 +0100 |
parents | d8a1481eaa0c |
children |
line wrap: on
line source
/* * vararg support for extern(C) functions */ module ldc.cstdarg; // Check for the right compiler version(LDC) { // OK } else { static assert(false, "This module is only valid for LDC"); } 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);