From e6c3a80b01ffb52079783cddd9be6d392d0f7039 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Mon, 29 Jul 2024 19:59:52 -0400 Subject: redesign compositor protocol, start widget library --- euler/include/cassert | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 euler/include/cassert (limited to 'euler/include/cassert') diff --git a/euler/include/cassert b/euler/include/cassert new file mode 100644 index 0000000..415790d --- /dev/null +++ b/euler/include/cassert @@ -0,0 +1,12 @@ +#pragma once + +namespace euler { + + [[noreturn]] inline void assert_failed() { + //TODO: log error and abort + while (1) ; + } + +} + +#define assert(cond) ((cond) ? (void)0 : ::euler::assert_failed()); -- cgit v1.2.3