From 1ef5d609d93619a22aad4baebf3c23e2a96affea Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 30 May 2020 10:37:36 +0200 Subject: AK+LibC: Add TODO() as an alternative to ASSERT_NOT_REACHED() I've been using this in the new HTML parser and it makes it much easier to understand the state of unfinished code branches. TODO() is for places where it's okay to end up but we need to implement something there. ASSERT_NOT_REACHED() is for places where it's not okay to end up, and something has gone wrong. --- Kernel/Assertions.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Kernel') diff --git a/Kernel/Assertions.h b/Kernel/Assertions.h index cd8244452b..b48273a301 100644 --- a/Kernel/Assertions.h +++ b/Kernel/Assertions.h @@ -47,3 +47,4 @@ } while (0) #define ASSERT_INTERRUPTS_DISABLED() ASSERT(!(cpu_flags() & 0x200)) #define ASSERT_INTERRUPTS_ENABLED() ASSERT(cpu_flags() & 0x200) +#define TODO ASSERT_NOT_REACHED -- cgit v1.2.3