[svn r69] forgot std.stdarg

This commit is contained in:
Tomas Lindquist Olsen
2007-10-26 15:14:51 +02:00
parent 498c442bc1
commit 49deafe227
2 changed files with 19 additions and 4 deletions

View File

@@ -242,8 +242,8 @@ void TypeInfoDeclaration::toObjFile()
Logger::println("TypeInfoDeclaration::toObjFile()");
LOG_SCOPE;
Logger::println("type = '%s'", tinfo->toChars());
Logger::println("type = '%s'", tinfo->toChars());
Logger::println("typeinfo mangle: %s", mangle());
// this is a declaration of a builtin __initZ var
@@ -255,9 +255,6 @@ void TypeInfoDeclaration::toObjFile()
// custom typedef
else {
toDt(NULL);
// this is a specialized typeinfo
//std::vector<const llvm::Type*> stypes;
//stypes.push_back(
}
}

18
lphobos/std/stdarg.d Normal file
View File

@@ -0,0 +1,18 @@
/*
* Placed in public domain.
* Written by Hauke Duden and Walter Bright
*/
/* This is for use with variable argument lists with extern(D) linkage. */
module std.stdarg;
alias void* va_list;
T va_arg(T)(inout va_list vp)
{
va_list vptmp = vp;
vp += T.sizeof;
return *cast(T*)vptmp;
}