Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.92 KB | None | 0 0
  1. /*
  2. dmd -c -I./tango/core -I. -I./tango/core/vendor -m64 -version=WithDateTime -oftango-core-Variant-m64--version-WithDateTime.o ./tango/core/Variant.d
  3. VARARG SET
  4. ./tango/core/Variant.d(770): Error: '__va_argsave_t' is not defined, perhaps you need to import std.c.stdarg; ?
  5. ./tango/core/Variant.d(770): Error: __va_argsave_t is used as a type
  6. ./tango/core/Variant.d(770): Error: variable tango.core.Variant.Variant.fromVararg.__va_argsave voids have no value
  7. */
  8.  
  9.     // Layout of this struct must match __gnuc_va_list for C ABI compatibility
  10.     struct __va_list
  11.     {
  12.         uint offset_regs = 6 * 8;            // no regs
  13.         uint offset_fpregs = 6 * 8 + 8 * 16; // no fp regs
  14.         void* stack_args;
  15.         void* reg_args;
  16.     }
  17.  
  18. pragma(msg, "VARARG SET");
  19.  
  20.     struct __va_argsave_t
  21.     {
  22.         size_t[6] regs;   // RDI,RSI,RDX,RCX,R8,R9
  23.         real[8] fpregs;   // XMM0..XMM7
  24.         __va_list va;
  25.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement