diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-30 10:37:36 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-30 11:31:49 +0200 |
commit | 1ef5d609d93619a22aad4baebf3c23e2a96affea (patch) | |
tree | 9f8748305d123787d7959e3b38c9c89e6e007fcd /Kernel | |
parent | cfbd95f42a01d7fea2a5c83ebcaa107f34f6e4ef (diff) | |
download | serenity-1ef5d609d93619a22aad4baebf3c23e2a96affea.zip |
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.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Assertions.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 |