changeset 5603:3c4ee4960912 draft

(svn r8057) -Codechange: Declare the "new" max template as static line.
author celestar <celestar@openttd.org>
date Thu, 11 Jan 2007 12:38:04 +0000
parents 0727c102447e
children 709993545238
files src/macros.h
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/macros.h
+++ b/src/macros.h
@@ -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; }