blob: 0afd5619d54f17f691792ae21f2804d82ba43e01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* SPDX-License-Identifier: MIT */
#ifndef ASSERT_H
#define ASSERT_H
void __assert_fail(const char *assertion, const char *file, unsigned int line,
const char *function);
#define assert(expression) \
((expression) ? (void)0 : __assert_fail(#expression, __FILE__, __LINE__, __func__))
/* Requires C11 */
#define static_assert _Static_assert
#endif
|