Mercurial > projects > qtd
comparison d2/qtd/Signal.d @ 366:da4235301224
Fixed VoidFunc. Updated to dmd.2.047.
author | Max Samukha <maxter@spambox.com> |
---|---|
date | Wed, 23 Jun 2010 21:34:43 +0300 |
parents | 31520b2c0b3c |
children | f69341b40588 |
comparison
equal
deleted
inserted
replaced
365:958e8b9a89bd | 366:da4235301224 |
---|---|
11 */ | 11 */ |
12 module qtd.Signal; | 12 module qtd.Signal; |
13 | 13 |
14 import core.stdc.stdlib : crealloc = realloc, cfree = free; | 14 import core.stdc.stdlib : crealloc = realloc, cfree = free; |
15 import core.stdc.string : memmove; | 15 import core.stdc.string : memmove; |
16 import std.string : strip; | |
16 | 17 |
17 import | 18 import |
18 core.thread, | 19 core.thread, |
19 core.exception, | 20 core.exception, |
20 | 21 |
21 std.algorithm, | |
22 std.typetuple, | 22 std.typetuple, |
23 std.conv, | 23 std.conv, |
24 std.traits, | 24 std.traits, |
25 std.string, | |
26 | 25 |
27 qt.QGlobal, | 26 qt.QGlobal, |
27 qtd.String, | |
28 qtd.Marshal, | 28 qtd.Marshal, |
29 qtd.meta.Compiletime, | 29 qtd.meta.Compiletime, |
30 qtd.ctfe.Format; | 30 qtd.ctfe.Format; |
31 | 31 |
32 /** The beast that takes string representation of function arguments | 32 /** The beast that takes string representation of function arguments |
124 // | 124 // |
125 if (signalKind != SignalKind.BindQtSignal) | 125 if (signalKind != SignalKind.BindQtSignal) |
126 res ~= "protected "; | 126 res ~= "protected "; |
127 | 127 |
128 res ~= "Args[0] " ~ name; | 128 res ~= "Args[0] " ~ name; |
129 | 129 |
130 if (signalKind == SignalKind.BindQtSignal) | 130 if (signalKind == SignalKind.BindQtSignal) |
131 res ~= "_emit"; | 131 res ~= "_emit"; |
132 | 132 |
133 res ~= "("; | 133 res ~= "("; |
134 | 134 |
135 foreach (i; 1..argCount) | 135 foreach (i; 1..argCount) |
136 { | 136 { |
137 auto iStr = to!string(i); | 137 auto iStr = to!string(i); |
138 if (i > 1) | 138 if (i > 1) |
139 res ~= ", "; | 139 res ~= ", "; |