Re: D3DX8: [4/13]: implement D3DX__Add with a test
19 Oct
2007
19 Oct
'07
9:42 a.m.
Am Freitag, 19. Oktober 2007 10:13:39 schrieb David.Adam(a)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.
6633
Age (days ago)
6633
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stefan Dösinger