|
@@ -40,20 +40,24 @@ bool coreTestNotNull(CORE_TEST_ARGS, const void* p);
|
|
|
|
|
|
bool coreTestVectorN(CORE_TEST_ARGS, const float* wanted, const float* actual,
|
|
bool coreTestVectorN(CORE_TEST_ARGS, const float* wanted, const float* actual,
|
|
size_t n);
|
|
size_t n);
|
|
|
|
+#define CORE_TEST_VN(wanted, actual, n) \
|
|
|
|
+ coreTestVectorN(__FILE__, __LINE__, (wanted)->data, (actual)->data, n)
|
|
#define CORE_TEST_V2(wanted, actual) \
|
|
#define CORE_TEST_V2(wanted, actual) \
|
|
- coreTestVectorN(__FILE__, __LINE__, (wanted)->data, (actual)->data, 2)
|
|
|
|
|
|
+ CORE_TEST_VN((CoreVector2*)(wanted), (CoreVector2*)(actual), 2)
|
|
#define CORE_TEST_V3(wanted, actual) \
|
|
#define CORE_TEST_V3(wanted, actual) \
|
|
- coreTestVectorN(__FILE__, __LINE__, (wanted)->data, (actual)->data, 3)
|
|
|
|
|
|
+ CORE_TEST_VN((CoreVector3*)(wanted), (CoreVector3*)(actual), 3)
|
|
#define CORE_TEST_V4(wanted, actual) \
|
|
#define CORE_TEST_V4(wanted, actual) \
|
|
- coreTestVectorN(__FILE__, __LINE__, (wanted)->data, (actual)->data, 4)
|
|
|
|
|
|
+ CORE_TEST_VN((CoreVector4*)(wanted), (CoreVector4*)(actual), 4)
|
|
|
|
|
|
bool coreTestIntVectorN(CORE_TEST_ARGS, const int* wanted, const int* actual,
|
|
bool coreTestIntVectorN(CORE_TEST_ARGS, const int* wanted, const int* actual,
|
|
size_t n);
|
|
size_t n);
|
|
|
|
+#define CORE_TEST_IVN(wanted, actual, n) \
|
|
|
|
+ coreTestIntVectorN(__FILE__, __LINE__, (wanted)->data, (actual)->data, n)
|
|
#define CORE_TEST_IV2(wanted, actual) \
|
|
#define CORE_TEST_IV2(wanted, actual) \
|
|
- coreTestIntVectorN(__FILE__, __LINE__, (wanted)->data, (actual)->data, 2)
|
|
|
|
|
|
+ CORE_TEST_IVN((CoreIntVector2*)(wanted), (CoreIntVector2*)(actual), 2)
|
|
#define CORE_TEST_IV3(wanted, actual) \
|
|
#define CORE_TEST_IV3(wanted, actual) \
|
|
- coreTestIntVectorN(__FILE__, __LINE__, (wanted)->data, (actual)->data, 3)
|
|
|
|
|
|
+ CORE_TEST_IVN((CoreIntVector3*)(wanted), (CoreIntVector3*)(actual), 3)
|
|
#define CORE_TEST_IV4(wanted, actual) \
|
|
#define CORE_TEST_IV4(wanted, actual) \
|
|
- coreTestIntVectorN(__FILE__, __LINE__, (wanted)->data, (actual)->data, 4)
|
|
|
|
|
|
+ CORE_TEST_IVN((CoreIntVector4*)(wanted), (CoreIntVector4*)(actual), 4)
|
|
|
|
|
|
#endif
|
|
#endif
|