comparison d2/qtd/Debug.d @ 374:681af90e1d53

Removed debug writelns. Fixed build script.
author Max Samukha <maxter@spambox.com>
date Thu, 08 Jul 2010 22:21:56 +0300
parents a032df77b6ab
children bd7f485e3573
comparison
equal deleted inserted replaced
373:1f189d0ceab4 374:681af90e1d53
2 2
3 version (QtdUnittest) 3 version (QtdUnittest)
4 debug = UseQtdDebug; 4 debug = UseQtdDebug;
5 else debug (QtdDebug) 5 else debug (QtdDebug)
6 debug = UseQtdDebug; 6 debug = UseQtdDebug;
7 7
8 debug (UseQtdDebug) 8 debug (UseQtdDebug)
9 { 9 {
10 import 10 import
11 std.string, 11 std.string,
12 qtd.QtdObject; 12 qtd.QtdObject;
53 int wrapperCount_; 53 int wrapperCount_;
54 int nativeDeletedCount_; 54 int nativeDeletedCount_;
55 55
56 this() {} 56 this() {}
57 } 57 }
58 58
59 string wrapperToString(QtdObject wrapper) 59 string wrapperToString(QtdObject wrapper)
60 { 60 {
61 static assert (QtdObjectFlags.sizeof == ubyte.sizeof); 61 static assert (QtdObjectFlags.sizeof == ubyte.sizeof);
62 auto flags = wrapper.qtdFlags; 62 auto flags = wrapper.qtdFlags;
63 return format("%s (nativeId: %s, this ptr: %s, flags: %b)", this, wrapper.qtdNativeId 63 return format("%s (nativeId: %s, this ptr: %s, flags: %b)", this, wrapper.qtdNativeId
85 { 85 {
86 info("Native object deleted: " ~ wrapperToString(wrapper)); 86 info("Native object deleted: " ~ wrapperToString(wrapper));
87 nativeDeletedCount_++; 87 nativeDeletedCount_++;
88 } 88 }
89 89
90 void onWrapperOwnershipChanged(QtdObject wrapper) 90 void onObjectOwnershipChanged(QtdObject wrapper)
91 { 91 {
92 info("Wrapper ownership chaged: " ~ wrapperToString(wrapper)); 92 info("Object ownership changed: " ~ wrapperToString(wrapper));
93 } 93 }
94 94
95 void onDeletingWrapperFromNative(void* dId) 95 void onDeletingWrapperFromNative(void* dId)
96 { 96 {
97 info(format("Wrapper deletion initiated from C++ (wrapper id: %s)", dId)); 97 info(format("Wrapper deletion initiated from C++ (wrapper id: %s)", dId));