Commit 732bf4bf authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Added missing function, but warnings are fatal for now.

parent 2b32fd74
......@@ -25,8 +25,8 @@
#include "labcomm2014_error.h"
void labcomm2014_error_fatal_global(enum labcomm2014_error error,
char *format,
...)
char *format,
...)
{
va_list args;
......@@ -37,3 +37,19 @@ void labcomm2014_error_fatal_global(enum labcomm2014_error error,
exit(1);
}
void labcomm2014_error_warning(struct labcomm2014_error_handler *e,
enum labcomm2014_error error,
char *format,
...)
{
va_list args;
fprintf(stderr, "Fatal warning %d\n", error);
va_start(args, format);
vprintf(format, args);
va_end(args);
exit(1);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment