summaryrefslogtreecommitdiff
path: root/src/macros.h
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2007-11-19 18:38:10 +0000
committerskidd13 <skidd13@openttd.org>2007-11-19 18:38:10 +0000
commit8be526e4990ef8c7a742e6f3f67a42d0036750eb (patch)
tree7818a2f346fc9a85d84a2a844989ea1a90136b90 /src/macros.h
parent006acff1834d37ba4b1553ba324c255a6cc2382e (diff)
downloadopenttd-8be526e4990ef8c7a742e6f3f67a42d0036750eb.tar.xz
(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/macros.h b/src/macros.h
index cb2839c90..f42870f3c 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -151,9 +151,9 @@ static inline uint minu(const uint a, const uint b)
* @param min The minimum of the interval.
* @param max the maximum of the interval.
* @returns A value between min and max which is closest to a.
- * @see clampu(uint, uint, uint)
+ * @see ClampU(uint, uint, uint)
*/
-static inline int clamp(const int a, const int min, const int max)
+static inline int Clamp(const int a, const int min, const int max)
{
if (a <= min) return min;
if (a >= max) return max;
@@ -174,9 +174,9 @@ static inline int clamp(const int a, const int min, const int max)
* @param min The minimum of the interval.
* @param max the maximum of the interval.
* @returns A value between min and max which is closest to a.
- * @see clamp(int, int, int)
+ * @see Clamp(int, int, int)
*/
-static inline uint clampu(const uint a, const uint min, const uint max)
+static inline uint ClampU(const uint a, const uint min, const uint max)
{
if (a <= min) return min;
if (a >= max) return max;
@@ -195,7 +195,7 @@ static inline uint clampu(const uint a, const uint min, const uint max)
*
* @param a The 64-bit value to clamps
* @return The 64-bit value reduced to a 32-bit value
- * @see clamp(int, int, int)
+ * @see Clamp(int, int, int)
*/
static inline int32 ClampToI32(const int64 a)
{