diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2026-08-17 17:06:04 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2026-08-17 18:41:36 +0000 |
| commit | 37bd69d43c70346b9191f7ce07ee9ed783ce528f (patch) | |
| tree | 835e2fc7c857e98e92adc247e63436656b3f07f5 /include/lldb/Interpreter | |
| parent | 4c1004c00ff250f2a9e5bff5ae90c25d6b70feb3 (diff) | |
sys: Add sys/ckdint.h
We have a C23 stdckdint.h header for userspace, which provides checked
addition, subtraction and multiplication. We lack similar helpers in
the kernel, where they are regularly needed.
Let's just adopt the C23 macros. For bonus points, I added a wrapper to
ensure that ignored an return value is raised as an error by the
compiler.
Reviewed by: kib, emaste
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D58773
Diffstat (limited to 'include/lldb/Interpreter')
0 files changed, 0 insertions, 0 deletions
