/
dzavalishin
/
pok
Обзор
Документация
Войти
/
dzavalishin
/
pok
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
kernel/include/core/debug.h
36 строк
928 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_DEBUG #ifndef __POK_KERNEL_DEBUG_H_ #define __POK_KERNEL_DEBUG_H_ #include <errno.h> #include <libc.h> #include <types.h> void pok_fatal(const char *message); int debug_strlen(const char *str); #define POK_FATAL(arg) pok_fatal(arg) #define POK_DEBUG_PRINT_CURRENT_STATE pok_debug_print_current_state(); #endif /* __POK_KERNELDEBUG_H__ */ #else #define POK_DEBUG_PRINT_CURRENT_STATE #define POK_FATAL(arg) #endif /* POK_NEEDS_DEBUG */