From f878f9e4c42f02585e57bb35c3aabf9f69ee3834 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Thu, 4 Apr 2024 15:33:40 +0200 Subject: More work on Span, add Ensures and Expects --- deimos/core/gsl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'deimos/core/gsl.h') diff --git a/deimos/core/gsl.h b/deimos/core/gsl.h index b6a9804..2000f6a 100644 --- a/deimos/core/gsl.h +++ b/deimos/core/gsl.h @@ -8,3 +8,5 @@ using czstring = const char*; } // namespace gsl +#define Expects(EXPR) do { if (!(EXPR)) { __builtin_trap(); } } while (0) +#define Ensures(EXPR) do { if (!(EXPR)) { __builtin_trap(); } } while (0) -- cgit