1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 17:19:09 +00:00

(svn r4987) Feature: Merged YAPF into trunk. Thanks to devs for continuous support and users for testing.

This commit is contained in:
KUDr
2006-05-27 16:12:16 +00:00
parent 3d01010440
commit 5e73dce0e7
85 changed files with 8440 additions and 112 deletions

34
yapf/unittest/unittest.h Normal file
View File

@@ -0,0 +1,34 @@
/* $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