This commit is contained in:
Alex Kotov 2021-12-15 03:12:45 +05:00
parent 4b887b3a67
commit 8d00ffb6fd
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 9 additions and 0 deletions

View File

@ -9,8 +9,17 @@
void (*kernaux_assert_cb)(const char *file, int line, const char *str) = NULL;
void kernaux_assert_do(
#ifndef ENABLE_ASSERT
__attribute__((unused))
#endif
const char *const file,
#ifndef ENABLE_ASSERT
__attribute__((unused))
#endif
const int line,
#ifndef ENABLE_ASSERT
__attribute__((unused))
#endif
const char *const str
) {
#ifdef ENABLE_ASSERT