mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
AK: Untangle TestSuite assertions a bit
This commit is contained in:
parent
531d72fdfd
commit
644d981b2b
Notes:
sideshowbarker
2024-07-18 22:00:02 +09:00
Author: https://github.com/alimpfard
Commit: 644d981b2b
Pull-request: https://github.com/SerenityOS/serenity/pull/5468
3 changed files with 17 additions and 19 deletions
|
@ -26,18 +26,14 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#ifndef AK_TEST_SUITE
|
||||
|
||||
# if defined(KERNEL)
|
||||
# include <Kernel/Assertions.h>
|
||||
# else
|
||||
# include <assert.h>
|
||||
# ifndef __serenity__
|
||||
# define ASSERT assert
|
||||
# define ASSERT_NOT_REACHED() assert(false)
|
||||
# define RELEASE_ASSERT assert
|
||||
# define TODO ASSERT_NOT_REACHED
|
||||
# endif
|
||||
#if defined(KERNEL)
|
||||
# include <Kernel/Assertions.h>
|
||||
#else
|
||||
# include <assert.h>
|
||||
# ifndef __serenity__
|
||||
# define ASSERT assert
|
||||
# define ASSERT_NOT_REACHED() assert(false)
|
||||
# define RELEASE_ASSERT assert
|
||||
# define TODO ASSERT_NOT_REACHED
|
||||
# endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue