diff options
author | rubidium <rubidium@openttd.org> | 2007-12-21 19:21:21 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-12-21 19:21:21 +0000 |
commit | 01e20c91403ebe8c88697ec11812fb46d414c770 (patch) | |
tree | fc1669fb9cd1857bea972a4378d8ebd1e80facfa /src/core/math_func.hpp | |
parent | d5c4ba8246fbd9b44469037d8224a94c0a5ce5d3 (diff) | |
download | openttd-01e20c91403ebe8c88697ec11812fb46d414c770.tar.xz |
(svn r11674) -Codechange: refactor some functions out of macros.h into more logical locations.
Diffstat (limited to 'src/core/math_func.hpp')
-rw-r--r-- | src/core/math_func.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/math_func.hpp b/src/core/math_func.hpp index c05e7ffeb..242b17b95 100644 --- a/src/core/math_func.hpp +++ b/src/core/math_func.hpp @@ -18,6 +18,12 @@ #endif /** + * The largest value that can be entered in a variable + * @param type the type of the variable + */ +#define MAX_UVALUE(type) ((type)~(type)0) + +/** * Returns the maximum of two values. * * This function returns the greater value of two given values. |