1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 09:17:45 +00:00

AK: Untangle TestSuite assertions a bit

This commit is contained in:
AnotherTest 2021-02-23 11:03:03 +03:30 committed by Andreas Kling
parent 531d72fdfd
commit 644d981b2b
3 changed files with 17 additions and 19 deletions

View file

@ -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