mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:27:45 +00:00
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.
This commit is contained in:
parent
e500b39e47
commit
bed51d856a
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue