ladybird/AK/Assertions.h

19 lines
380 B
C
Raw Normal View History

/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#if defined(KERNEL)
# include <Kernel/Assertions.h>
#else
# include <assert.h>
# ifndef __serenity__
# define VERIFY assert
# define VERIFY_NOT_REACHED() assert(false)
# define TODO VERIFY_NOT_REACHED
# endif
#endif