diff options
author | sin-ack <sin-ack@users.noreply.github.com> | 2021-08-03 20:02:19 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-04 11:01:16 +0200 |
commit | bed51d856a516af06be3bbbfd3b9592eb53fd848 (patch) | |
tree | 65cedd09c1cfe1295e5deffbc04f5486e0b803ee /AK | |
parent | e500b39e474876988d7421f5ad17e132ba4d82a9 (diff) | |
download | serenity-bed51d856a516af06be3bbbfd3b9592eb53fd848.zip |
AK+Kernel: Print TODO when a TODO() is executed
Previously we would just print "ASSERTION FAILED: false", which was
kinda cryptic and also didn't make it clear whether this was a TODO or
an unreachable condition. Now, we actually print "ASSERTION FAILED:
TODO", making it crystal clear.
Diffstat (limited to 'AK')
-rw-r--r-- | AK/Assertions.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/AK/Assertions.h b/AK/Assertions.h index 4aee5d8429..fbe3a86d70 100644 --- a/AK/Assertions.h +++ b/AK/Assertions.h @@ -12,5 +12,6 @@ # include <assert.h> # define VERIFY assert # define VERIFY_NOT_REACHED() assert(false) -# define TODO VERIFY_NOT_REACHED +static constexpr bool TODO = false; +# define TODO() VERIFY(TODO) #endif |