ssn-installer/src/utils/min.h

8 lines
146 B
C
Raw Normal View History

2018-09-14 03:16:31 +02:00
#pragma once
//minimum of two integers
#define min(a,b) \
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a < _b ? _a : _b; })