Mercurial > projects > qtd
comparison d2/qtd/Signal.d @ 372:a032df77b6ab
Simple debug helper. Unittests. Meta-object for polymorphic non-QObjects
author | Max Samukha <maxter@spambox.com> |
---|---|
date | Thu, 08 Jul 2010 17:19:05 +0300 |
parents | f69341b40588 |
children | d0a103f25091 e67ce7c21758 |
comparison
equal
deleted
inserted
replaced
370:7fd4b69378bf | 372:a032df77b6ab |
---|---|
103 { | 103 { |
104 auto _tmp${0} = QString(_t${0}); | 104 auto _tmp${0} = QString(_t${0}); |
105 _a[${0}] = cast(void*)&_tmp${0}; | 105 _a[${0}] = cast(void*)&_tmp${0}; |
106 } | 106 } |
107 else static if (isQObjectType!(Args[${0}]) || isObjectType!(Args[${0}])) | 107 else static if (isQObjectType!(Args[${0}]) || isObjectType!(Args[${0}])) |
108 _a[${0}] = _t${0} ? &(_t${0}.__nativeId) : cast(void*)&_t${0}; | 108 { |
109 void* _tmp${0} = _t${0} ? _t${0}.qtdNativeId : null; | |
110 _a[${0}] = &_tmp${0}; | |
111 } | |
109 else static if (isValueType!(Args[${0}])) | 112 else static if (isValueType!(Args[${0}])) |
110 _a[${0}] = _t${0}.__nativeId; | 113 _a[${0}] = _t${0}.qtdNativeId; |
111 else | 114 else |
112 _a[${0}] = cast(void*)&_t${0}; | 115 _a[${0}] = cast(void*)&_t${0}; |
113 | 116 |
114 }, argIndex); | 117 }, argIndex); |
115 | 118 |