Validates a value as less than or equal to a specified maximum value.
Files
lib_def.h
Prototype
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
DEF_CHK_VAL_MAX(val, val_max);
|
Arguments
val
Value to validate.
...
where N
is the number of data word bits supported by the compiler and/or target environment. Note that the most negative value, -2^(N-1)
, is not included in the supported range since many compilers do not always correctly handle this value.
Example Usage
...
Language | C++ |
---|---|
CaptionText | CAPTION |
language | cpp |
...