Mercurial > projects > qtd
comparison d2/qt/QGlobal.d @ 371:12f60887ed15
add elasticnodes example and necessary changes to the library.
author | Eldar Insafutdinov |
---|---|
date | Wed, 07 Jul 2010 22:54:12 +0100 |
parents | 9784459f0750 |
children | 403d98bd47f6 |
comparison
equal
deleted
inserted
replaced
370:7fd4b69378bf | 371:12f60887ed15 |
---|---|
448 int qIntCast(float f) { return cast(int)(f); } | 448 int qIntCast(float f) { return cast(int)(f); } |
449 | 449 |
450 /* | 450 /* |
451 Reentrant versions of basic rand() functions for random number generation | 451 Reentrant versions of basic rand() functions for random number generation |
452 */ | 452 */ |
453 void qsrand(uint seed); | 453 private extern(C) int qtd_qrand(); |
454 int qrand(); | 454 private extern(C) void qtd_qsrand(uint); |
455 | 455 |
456 void qsrand(uint seed) | |
457 { | |
458 qtd_qsrand(seed); | |
459 } | |
460 | |
461 int qrand() | |
462 { | |
463 return qtd_qrand(); | |
464 } | |
456 | 465 |
457 /* | 466 /* |
458 This gives us the possibility to check which modules the user can | 467 This gives us the possibility to check which modules the user can |
459 use. These are purely compile time checks and will generate no code. | 468 use. These are purely compile time checks and will generate no code. |
460 */ | 469 */ |