17 #include <core/dependencies.h>
19 #ifdef POK_NEEDS_ERROR_HANDLING
21 #include <core/time.h>
22 #include <core/error.h>
24 #ifdef POK_NEEDS_DEBUG
25 #include <libc/stdio.h>
29 uint16_t pok_error_nb_reported = 0;
31 void pok_error_log (
const uint32_t error_id,
const uint32_t thread_id)
34 #ifdef POK_NEEDS_DEBUG
35 printf (
"Log error %d for thread %d\n", error_id, thread_id);
41 pok_error_reported[pok_error_nb_reported].thread = thread_id;
42 pok_error_reported[pok_error_nb_reported].error = error_id;
43 pok_time_gettick (&pok_error_reported[pok_error_nb_reported].when);
45 pok_error_nb_reported++;