From 84266a8f74aaf3d5eac64c679ba0124de4331bfe Mon Sep 17 00:00:00 2001 From: "Paul A. Patience" Date: Tue, 20 Feb 2024 19:33:26 +0000 Subject: gnu: Add debug-assert. * gnu/packages/cpp.scm (debug-assert): New variable. Change-Id: I4cee49ea2f5b761ab72bb7b063c2ea8fd99b991c Reviewed-by: Liliana Marie Prikler Reviewed-by: Skyler Ferris Signed-off-by: Sharlatan Hellseher --- gnu/packages/cpp.scm | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'gnu/packages') diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 26fc169154..ed88a27e89 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -38,7 +38,7 @@ ;;; Copyright © 2023 Liliana Marie Prikler ;;; Copyright © 2023 Denis 'GNUtoo' Carikli ;;; Copyright © 2023 Foundation Devices, Inc. -;;; Copyright © 2023 Paul A. Patience +;;; Copyright © 2023-2024 Paul A. Patience ;;; Copyright © 2024 dan ;;; Copyright © 2024 Peepo Froggings @@ -576,6 +576,29 @@ It also allows a server application to wait for any activity on any combination of these streams.") (license license:bsd-3))) +(define-public debug-assert + (package + (name "debug-assert") + (version "1.3.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/foonathan/debug_assert") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0z9wfh9h83rv6khm6s6bym40vgv2igy4yh665ygsdxwamil254b9")))) + (build-system cmake-build-system) + (arguments (list #:tests? #f)) ; no tests + (home-page "https://github.com/foonathan/debug_assert") + (synopsis "Assertion macro for C++") + (description + "debug_assert is a C++11 header-only library which provides the +@code{DEBUG_ASSERT()} macro, which among other features can be selectively +enabled in different parts of your code.") + (license license:zlib))) + (define-public xsimd (package (name "xsimd") -- cgit v1.2.3