mirror of https://github.com/OpenTTD/OpenTTD
(svn r8057) -Codechange: Declare the "new" max template as static line.
parent
1691b2da61
commit
6a256ff2df
|
@ -20,7 +20,11 @@
|
||||||
#undef max
|
#undef max
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
template <typename T> T max(T a, T b) { return a >= b ? a : b; }
|
template <typename T>
|
||||||
|
static inline T max(T a, T b)
|
||||||
|
{
|
||||||
|
return a >= b ? a : b;
|
||||||
|
}
|
||||||
|
|
||||||
static inline int min(int a, int b) { if (a <= b) return a; return b; }
|
static inline int min(int a, int b) { if (a <= b) return a; return b; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue