view lphobos/llvm/va_list.d @ 55:0ccfae271c45 trunk

[svn r59] Added support for C-style variadic functions. Currently only works on x86, x86-64 va_arg is broken in LLVM 2.1. PPC and PPC64 unknown. Updates to runtime. Rebuild!
author lindquist
date Wed, 24 Oct 2007 22:18:06 +0200
parents
children
line wrap: on
line source

module llvm.va_list;

alias void* va_list;

/*

version(X86)
{
    alias void* va_list;
}
else version(X86_64)
{
    struct X86_64_va_list
    {
        uint gp_offset;
        uint fp_offset;
        void* overflow_arg_area;
        void* reg_save_area;
    }
    alias X86_64_va_list va_list;
}
else
static assert("only x86 and x86-64 support va_list");

*/