-
Notifications
You must be signed in to change notification settings - Fork 13
/
error.h
30 lines (25 loc) · 865 Bytes
/
error.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* Author: Nathan Clack <[email protected]>
* Date : 2009
*
* Copyright 2010 Howard Hughes Medical Institute.
* All rights reserved.
* Use is subject to Janelia Farm Research Campus Software Copyright 1.1
* license terms (http://license.janelia.org/license/jfrc_copyright_1_1.html).
*/
#ifndef _H_ERROR_REPORT
#define _H_ERROR_REPORT
//#define SHOW_DEBUG_MESSAGES 1
//#define SHOW_PROGRESS_MESSAGES 1
#include <config.h>
#include <parameters/param.h>
#include <compat.h>
#include <stdarg.h>
typedef void (*reporter)(char *str,va_list argList);
void set_reporter(reporter f);
void error(char *str, ... );
void warning(char *str, ... );
void help(int show, char *str, ... );
void debug(char *str, ... );
void progress(char *str, ... );
void progress_meter(double cur, double min, double max, int len, char *str, ...);
#endif//_H_ERROR_REPORT