comparison generator/dgenerator.cpp @ 304:04b52676b45f signals

fixed compiling all packages
author eldar_ins@eldar-laptop
date Sun, 13 Dec 2009 06:24:55 +0500
parents 98b211f3ee34
children 91ed8edd442e
comparison
equal deleted inserted replaced
303:98b211f3ee34 304:04b52676b45f
2285 s << INDENT << "public alias void __isQtType_" << d_class->name() << ";" << endl << endl; 2285 s << INDENT << "public alias void __isQtType_" << d_class->name() << ";" << endl << endl;
2286 2286
2287 // construction of a native copy of a Value 2287 // construction of a native copy of a Value
2288 if (d_class->typeEntry()->isValue()) 2288 if (d_class->typeEntry()->isValue())
2289 { 2289 {
2290 AbstractMetaFunction *copy_ctor = d_class->copyConstructor();
2291 if (!d_class->typeEntry()->hasPrivateCopyConstructor()) // can do a copy if we have a public ctor or don't have any
2290 s << INDENT << "static void* __constructNativeCopy(const void* orig) {" << endl 2292 s << INDENT << "static void* __constructNativeCopy(const void* orig) {" << endl
2291 << INDENT << " return qtd_" << d_class->name() << "_native_copy(orig);" << endl 2293 << INDENT << " return qtd_" << d_class->name() << "_native_copy(orig);" << endl
2292 << INDENT << "}" << endl << endl 2294 << INDENT << "}" << endl << endl
2293 2295
2294 << INDENT << "static void __constructPlacedNativeCopy(const void* orig, void* place) {" << endl 2296 << INDENT << "static void __constructPlacedNativeCopy(const void* orig, void* place) {" << endl
2468 s << endl << "extern (C) void *__" << d_class->name() << "_entity(void *q_ptr);" << endl << endl; 2470 s << endl << "extern (C) void *__" << d_class->name() << "_entity(void *q_ptr);" << endl << endl;
2469 } 2471 }
2470 2472
2471 if (d_class->typeEntry()->isValue()) 2473 if (d_class->typeEntry()->isValue())
2472 { 2474 {
2475 AbstractMetaFunction *copy_ctor = d_class->copyConstructor();
2476 if (!d_class->typeEntry()->hasPrivateCopyConstructor()) // can do a copy if we have a public ctor or don't have any
2473 { 2477 {
2474 s << "private extern(C) void qtd_" << d_class->name() << "_placed_copy(const void* orig, void* place);" << endl 2478 s << "private extern(C) void qtd_" << d_class->name() << "_placed_copy(const void* orig, void* place);" << endl
2475 << "private extern(C) void* qtd_" << d_class->name() << "_native_copy(const void* orig);" << endl; 2479 << "private extern(C) void* qtd_" << d_class->name() << "_native_copy(const void* orig);" << endl;
2476 } 2480 }
2477 } 2481 }