/
dzavalishin
/
pok
Обзор
Документация
Войти
/
dzavalishin
/
pok
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
kernel/core/assert.c
32 строки
949 B
Samuel Tardieu
Update year in copyright headers
20 мар 2021, 11:30
20 мар 2021, 11:30
71185e2
Код
Авторство
О чём код?
/* * POK header * * The following file is a part of the POK project. Any modification should * be made according to the POK licence. You CANNOT use this file or a part * of a file for your own project. * * For more information on the POK licence, please see our LICENCE FILE * * Please follow the coding guidelines described in doc/CODING_GUIDELINES * * Copyright (c) 2007-2021 POK team */ #ifdef POK_NEEDS_ASSERT #include <dependencies.h> #include <assert.h> #include <core/multiprocessing.h> #include <core/shutdown.h> #include <libc.h> void __assert_failed(const char *assertion, const char *file, unsigned int line, const char *function) { printf("%s:%u: %s%sAssertion `%s' failed on processor %d.\n", file, line, function ? function : "", function ? ": " : "", assertion, pok_get_proc_id()); pok_shutdown(); } #endif