Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

CHECKARGUMENTNULL
CHECKNULL
DoubleMaxValue
DoubleMinValue
DoubleNegativeInfinity
DoublePositiveInfinity
MG_CHECK_RANGE
MG_TCHAR_TO_CHAR
MG_TCHAR_TO_WCHAR
MG_WCHAR_TO_CHAR
MG_WCHAR_TO_TCHAR
ROUND
#define MG_CHECK_RANGE | ( | value,
|  | min,
|  | max,
|  | methodName |  | ) |
Value:
    if (value < min || value > max)                                           \
        {                                                                         \
            if (NULL != methodName)                                               \
            {                                                                     \
                throw new MgArgumentOutOfRangeException(                          \
                    methodName, __LINE__, __WFILE__, NULL, L"", NULL);            \
            }                                                                     \
            else if (value < min)                                                 \
            {                                                                     \
                value = min;                                                      \
            }                                                                     \
            else                                                                  \
            {                                                                     \
                value = max;                                                      \
            }                                                                     \
        }                                                                         \

Comments or suggestions? Send us feedback.