… | |
… | |
8 | #include "ecb.h" |
8 | #include "ecb.h" |
9 | |
9 | |
10 | #include "estl.h" |
10 | #include "estl.h" |
11 | |
11 | |
12 | #include "emman.h" |
12 | #include "emman.h" |
13 | |
|
|
14 | // increases code size unless -fno-enforce-eh-specs |
|
|
15 | #if __GNUC__ |
|
|
16 | # define NOTHROW |
|
|
17 | # define THROW(x) |
|
|
18 | #else |
|
|
19 | # define NOTHROW throw() |
|
|
20 | # define THROW(x) throw x |
|
|
21 | #endif |
|
|
22 | |
13 | |
23 | // various utility functions |
14 | // various utility functions |
24 | template<typename T, typename U> static inline void min_it (T &a, U b) { a = a < (T)b ? a : (T)b; } |
15 | template<typename T, typename U> static inline void min_it (T &a, U b) { a = a < (T)b ? a : (T)b; } |
25 | template<typename T, typename U> static inline void max_it (T &a, U b) { a = a > (T)b ? a : (T)b; } |
16 | template<typename T, typename U> static inline void max_it (T &a, U b) { a = a > (T)b ? a : (T)b; } |
26 | |
17 | |