Changeset - r5603:362be85e7eb3
[Not reviewed]
master
0 1 0
celestar - 17 years ago 2007-01-11 12:38:04
celestar@openttd.org
(svn r8057) -Codechange: Declare the "new" max template as static line.
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/macros.h
Show inline comments
 
@@ -20,7 +20,11 @@
 
#undef max
 
#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; }
 

	
0 comments (0 inline, 0 general)