D3DX8: [4/13]: implement D3DX__Add with a test

Stefan Dösinger stefandoesinger at gmx.at
Fri Oct 19 04:42:33 CDT 2007


Am Freitag, 19. Oktober 2007 10:13:39 schrieb David.Adam at math.cnrs.fr:


> +#define expect_vec3(expectedvec,gotvec) 
ok((fabs(expectedvec.x-gotvec.x)<admitted_error)&&(fabs(expectedvec.y-gotvec.y)<admitted_error)&&(fabs(expectedvec.z-gotvec.z)<admitted_error),"Expected 
Vector= (%f, %f,%f)\n , Got Vector= (%f, %f, %f)\n", expectedvec.x, 
expectedvec.y, expectedvec.z, gotvec.x, gotvec.y, gotvec.z);

Usually inline functions are prefered over macros. I don't know how well that 
works with ok though, since it might drop the line of the error and make 
debugging harder.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20071019/de62fa5a/attachment.pgp 


More information about the wine-devel mailing list