blob: 4e83e5d6b75cfa49ae6e1f0f91348ce1dba9f25f [file] [log] [blame]
// Copyright Microsoft and CHERIoT Contributors.
// SPDX-License-Identifier: MIT
#ifndef _ASSERT_H_
#define _ASSERT_H_
#include <stdlib.h>
#ifdef NDEBUG
# define assert(x) ((void)0)
#else
# define assert(x) ((x) ? (void)0 : panic())
#endif
#ifndef static_assert
#define static_assert _Static_assert
#endif
#endif // _ASSERT_H_