diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lphobos/llvm/va_list.d	Wed Oct 24 22:18:06 2007 +0200
@@ -0,0 +1,25 @@
+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");
+
+*/