1
0
Fork 0
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:
AnotherTest 2021-02-23 11:03:03 +03:30 committed by Andreas Kling
parent 531d72fdfd
commit 644d981b2b
Notes: sideshowbarker 2024-07-18 22:00:02 +09:00
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