mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 05:27:45 +00:00
AK: Untangle TestSuite assertions a bit
This commit is contained in:
parent
531d72fdfd
commit
644d981b2b
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