From e33a97294c23af47d883b16bf84b964a55e710e1 Mon Sep 17 00:00:00 2001 From: wanp Date: Fri, 20 Sep 2024 13:48:29 -0300 Subject: [PATCH] twn_util.h: clarify behavior of null result pointer --- include/twn_util.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/twn_util.h b/include/twn_util.h index c4179de..eb3ff4a 100644 --- a/include/twn_util.h +++ b/include/twn_util.h @@ -110,6 +110,7 @@ _Alignas(16) /* calculates the overlap of two rectangles and places it in result. */ +/* result may be NULL. if this is the case, it will simply be ignored. */ /* returns true if the rectangles are indeed intersecting. */ TWN_API bool overlap_rect(const t_rect *a, const t_rect *b, t_rect *result); TWN_API bool overlap_frect(const t_frect *a, const t_frect *b, t_frect *result);