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

Commit

Permalink
change __ctfeWrite/ln to a signature which is easier to support
Browse files Browse the repository at this point in the history
  • Loading branch information
UplinkCoder committed Sep 4, 2016
1 parent 35cd635 commit 56e27e5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/object.d
Expand Up @@ -3183,9 +3183,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 56e27e5

Please sign in to comment.