Helper for clipping to range.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
0c11387408
commit
e8ee8f2716
@ -54,6 +54,7 @@ class WXDLLIMPEXP_CORE wxWindowList;
|
||||
|
||||
#define wxMax(a,b) (((a) > (b)) ? (a) : (b))
|
||||
#define wxMin(a,b) (((a) < (b)) ? (a) : (b))
|
||||
#define wxClip(a,b,c) (((a) < (b)) ? (b) : (((a) > (c)) ? (c) : (a)))
|
||||
|
||||
// wxGetFreeMemory can return huge amount of memory on 32-bit platforms as well
|
||||
// so to always use long long for its result type on all platforms which
|
||||
|
Loading…
Reference in New Issue
Block a user