Initial commit
[girtod.git] / mixin / Gtk2__MODULE.d
blob68d6e3557a06e5b540309116ba1531af3d14e2a7
1 void _dumpobj(T)(T o, bool deep=0) {
2 import std.stdio;
3 auto ts = o.tupleof;
4 write(typeid(o), " {");
6 static if (is(typeof(*T)==union)) {
7 write(*o, "}\n");
8 return;
10 else
11 writeln();
13 foreach (i, t; ts) {
14 write(" (", typeid(t), ") ", t);
15 if (deep)
16 static if (is(typeof(*t)))
17 if (ts[i])
18 write(" {", *ts[i], "}");
19 write(i!=ts.length-1 ? "\n" : "\n}\n");