Type checking and groundwork for introspection.

This commit is contained in:
Tristan Hume 2015-05-01 21:38:41 -04:00
parent 602b3958fd
commit 2af2db0020
3 changed files with 43 additions and 5 deletions

View file

@ -86,6 +86,14 @@ string typeSigAll(TS...)() if(allCanDBus!TS) {
return sig;
}
string[] typeSigArr(TS...)() if(allCanDBus!TS) {
string[] sig = [];
foreach(i,T; TS) {
sig ~= typeSig!T();
}
return sig;
}
int typeCode(T)() if(canDBus!T) {
string sig = typeSig!T();
return sig[0];