comparison d2/qtd/QtdObject.d @ 382:1d56b2a2e10c

Fixes to debugging stuff. Added size_t as primitive type to workaround Qwt build failure in debug
author Max Samukha <maxter@spambox.com>
date Mon, 12 Jul 2010 20:36:07 +0300
parents a032df77b6ab
children bd7f485e3573
comparison
equal deleted inserted replaced
381:347e4c7a9ba1 382:1d56b2a2e10c
11 import 11 import
12 core.memory, 12 core.memory,
13 std.bitmanip, 13 std.bitmanip,
14 qtd.Core, 14 qtd.Core,
15 qtd.Debug, 15 qtd.Debug,
16 qtd.meta.Runtime; 16 qtd.meta.Runtime;
17 17
18 /** 18 /**
19 QtdObject initialization options. 19 QtdObject initialization options.
20 */ 20 */
21 enum QtdObjectInitFlags 21 enum QtdObjectInitFlags
138 This function is used to test that this and the other wrapper point 138 This function is used to test that this and the other wrapper point
139 to the same native object (identity test). 139 to the same native object (identity test).
140 140
141 Note that wrappers for QObject instances and instances of classes 141 Note that wrappers for QObject instances and instances of classes
142 derived from QObject are always unique, therefore 142 derived from QObject are always unique, therefore
143 the 'is' expression can be used instead of this function. 143 the 'is' operator can be used instead of this function.
144 */ 144 */
145 final bool isSame(const(QtdObject) other) const 145 final bool isSame(const(QtdObject) other) const
146 { 146 {
147 return other !is null && (other is this || other.qtdNativeId == qtdNativeId); 147 return other !is null && (other is this || other.qtdNativeId == qtdNativeId);
148 } 148 }
196 obj._flags.nativeDeleteDisabled = false; 196 obj._flags.nativeDeleteDisabled = false;
197 } 197 }
198 else 198 else
199 assert(false); 199 assert(false);
200 200
201 mixin(debugHandler("onWrapperOwnershipChanged", "obj")); 201 mixin(debugHandler("onObjectOwnershipChanged", "obj"));
202 } 202 }
203 203
204 // COMPILER BUG: 3206 204 // COMPILER BUG: 3206
205 protected void qtdDeleteNative() 205 protected void qtdDeleteNative()
206 { 206 {