Mercurial > projects > ldc
view import/llvmdc/cstdarg.di @ 489:822774a94750
Make the alignment computations of the frontend match the llvm default alignment.
Breaks run/double_03 because it assumes double.alignof >= 8, which does not
seem to be the case for llvm.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 10 Aug 2008 13:42:08 +0200 |
parents | cc40db549aea |
children |
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);