mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-10-01 01:45:38 -04:00
17 lines
461 B
C
17 lines
461 B
C
|
/*
|
||
|
* Copyright (C) 2022, 2023 - Tillitis AB
|
||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||
|
*/
|
||
|
|
||
|
#ifndef ASSERT_H
|
||
|
#define ASSERT_H
|
||
|
|
||
|
#define assert(expr) \
|
||
|
((expr) ? (void)(0) \
|
||
|
: __assert_fail(#expr, __FILE__, __LINE__, __func__))
|
||
|
|
||
|
void __assert_fail(const char *__assertion, const char *__file,
|
||
|
unsigned int __line, const char *__function);
|
||
|
|
||
|
#endif
|