3.1.15.2.7. waf_tools.config_codegen_task.NumericLimits

class waf_tools.config_codegen_task.NumericLimits(min_value: int | float, max_value: int | float)

Bases: object

Min/max limits for numeric types.

Used to range-check define values against their declared C type before they are rendered as literals.

min_value

Smallest value representable by the type.

Type:

int | float

max_value

Largest value representable by the type.

Type:

int | float