Removed one of the temporary defines
@@ -74,9 +74,10 @@ Rigid_rect *create_rigid_rect(Rect rect, Color color, const char *id)
RETURN_LT(lt, NULL);
}
-#define min_size(a, b) (a < b ? a : b)
- const size_t len_id = min_size(MAX_ID_SIZE - 1, strlen(id));
-#undef min_size
+ const size_t len_id = ({
+ const size_t _len = strlen(id);
+ (MAX_ID_SIZE-1) < _len ? (MAX_ID_SIZE-1) : _len;
+ });
memcpy(rigid_rect->id, id, len_id);
rigid_rect->id[len_id] = 0;
