Files
@ r4167:c2fe5fc7b838
Branch filter:
Location: cpp/openttd-patchpack/source/yapf/unittest/unittest.h - annotation
r4167:c2fe5fc7b838
510 B
text/x-c
(svn r5601) WebTranslator2 update to 2006-07-24 22:10:14
german - 1 changed by Neonox (1)
slovak - 10 changed by lengyel (10)
german - 1 changed by Neonox (1)
slovak - 10 changed by lengyel (10)
r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 r3900:1c2675abec23 | /* $Id$ */
#define UNITTEST
extern int num_tests_failed;
extern int num_tests_total;
extern bool _dbg;
#define DBG if(_dbg) printf
#define CHECK_INT(case_num, val, should_be) \
{ \
if((val) != (should_be)) { \
res |= (1 << case_num); \
printf("\n****** ERROR in case %d: " #val " = %d (should be %d)!", case_num, (val), (should_be)); \
} \
}
typedef int(*TESTPROC)(bool silent);
//#undef FORCEINLINE
//#define FORCEINLINE
#if defined(_WIN32) || defined(_WIN64)
# include <windows.h>
#else
#endif
|