Mercurial > public > hwos_code
comparison src/p2_definitions.h @ 285:cd2320cd6f9a
NEW unit tests for gas volumes...
author | jdg@air |
---|---|
date | Fri, 29 May 2015 01:25:45 +0200 |
parents | 11d4fc797f74 |
children | 778b59f39529 |
comparison
equal
deleted
inserted
replaced
284:d1117b99fd99 | 285:cd2320cd6f9a |
---|---|
21 // | 21 // |
22 ////////////////////////////////////////////////////////////////////////////// | 22 ////////////////////////////////////////////////////////////////////////////// |
23 // history: | 23 // history: |
24 // 2010-12-25 v110: [jDG] split in three files (deco.c, main.c, definitions.h) | 24 // 2010-12-25 v110: [jDG] split in three files (deco.c, main.c, definitions.h) |
25 | 25 |
26 | |
27 #define MBAR_REACH_GASCHANGE_AUTO_CHANGE_OFF 150 | 26 #define MBAR_REACH_GASCHANGE_AUTO_CHANGE_OFF 150 |
28 | 27 |
29 // ************************* | 28 // ************************* |
30 // ** P R O T O T Y P E S ** | 29 // ** P R O T O T Y P E S ** |
31 // ************************* | 30 // ************************* |
46 | 45 |
47 // *********************************************** | 46 // *********************************************** |
48 // ** Allow compile on VisualC ** | 47 // ** Allow compile on VisualC ** |
49 // *********************************************** | 48 // *********************************************** |
50 | 49 |
51 #ifdef WIN32 | 50 #if defined(WIN32) || defined(UNIX) |
52 // Some keywords just dont exists on Visual C++: | 51 // Some keywords just dont exists on Visual C++: |
53 # define CROSS_COMPILE | 52 # define CROSS_COMPILE |
54 # define __18CXX | 53 # define __18CXX |
55 # define ram | 54 # define ram |
56 # define rom | 55 # define rom |
57 # define overlay | 56 # define overlay |
58 # define PARAMETER | 57 # define PARAMETER |
59 | 58 |
60 #include <assert.h> | 59 # include <assert.h> |
61 | |
62 // Avoid warnings about float/double mismatches: | |
63 # pragma warning(disable: 4244 4068 4305) | |
64 #else | 60 #else |
65 # define PARAMETER static | 61 # define PARAMETER static |
66 # ifdef __DEBUG | 62 # ifdef __DEBUG |
67 # define assert(predicate) if( !(predicate) ) assert_failed(__LINE__) | 63 # define assert(predicate) if( !(predicate) ) assert_failed(__LINE__) |
68 # else | 64 # else |