git: <sys/cdefs.h>: Add __min_size(x) macro
Aaron LI
aly at crater.dragonflybsd.org
Sat Jan 13 06:01:27 PST 2024
commit 25b141f1757067d9564add16b6b1f845e36ceed0
Author: Aaron LI <aly at aaronly.me>
Date: Thu Nov 16 15:56:31 2023 +0800
<sys/cdefs.h>: Add __min_size(x) macro
C99 allows to use the 'static' keyword in function array parameter
declarators, which helps the compiler better validate the passed
argument and optimize code. However, this syntax isn't allowed in C++.
This macro allows us both to use this C99 feature and to use the headers
in C++.
Obtained-from: FreeBSD
URL: https://reviews.freebsd.org/D8277
Summary of changes:
sys/sys/cdefs.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/25b141f1757067d9564add16b6b1f845e36ceed0
--
DragonFly BSD source repository
More information about the Commits
mailing list