|
#include <gargoyle/delusion.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
void gargoyle_emit_err(struct gargoyle_err *err) {
|
|
fprintf(stderr, "%s(%u): ", err->func, err->code);
|
|
|
|
if(err->errno) {
|
|
fprintf(stderr, "%s(%d): ", err->errno_func, err->errno);
|
|
}
|
|
|
|
fprintf(stderr, "%s\n", err->msg);
|
|
}
|