#include <stdio.h>
#include <gandalf/common/gan_err_trace.h>
#include <gandalf/common/gan_err.h>
Functions | |
Gan_ErrorReporterFunc | gan_err_set_reporter (Gan_ErrorReporterFunc app_error_reporter) |
Installs an error reporter. | |
Gan_ErrorReporterFunc | gan_err_get_reporter (void) |
Returns current error reporter. | |
int | gan_err_register_fileline (const char *func_name, int err_code, const char *file_name, int line_number, const char *message, int number) |
Registers occurence of an error. | |
void | gan_err_report (void) |
Invokes current error reporter. | |
void | gan_err_set_trace (Gan_TraceMode trace_mode) |
Enable or disable use of trace to store error details. | |
void | gan_err_flush_trace (void) |
Flush all errors in trace. | |
int | gan_err_get_error_count (void) |
Gets the number of errors in error trace. | |
int | gan_err_get_error (int n, const char **func_name, int *err_code, const char **file_name, int *line_number, const char **message, int *number) |
Gets details of n-th error stored in the error trace. |
Part of: Gandalf Library