Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1643 from UplinkCoder/__ctfeWrite
Browse files Browse the repository at this point in the history
[blocks __ctfeWriteln]change __ctfeWrite/ln to a signature which is easier to support
  • Loading branch information
dnadlinger committed Sep 11, 2016
2 parents 3164410 + 56e27e5 commit d6924a9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/object.d
Expand Up @@ -3186,9 +3186,12 @@ bool _xopCmp(in void*, in void*)
{
throw new Error("TypeInfo.compare is not implemented");
}

void __ctfeWrite(T...)(auto ref T) {}
void __ctfeWriteln(T...)(auto ref T values) { __ctfeWrite(values, "\n"); }
void __ctfeWrite(const string s) {}
void __ctfeWriteln(const string s)
{
__ctfeWrite(s);
__ctfeWrite("\n");
}

/******************************************
* Create RTInfo for type T
Expand Down

0 comments on commit d6924a9

Please sign in to comment.