File: err.h

package info (click to toggle)
njamd 0.9.3pre2-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,704 kB
  • ctags: 1,056
  • sloc: ansic: 9,367; sh: 7,921; makefile: 121; perl: 52
file content (14 lines) | stat: -rwxr-xr-x 439 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef __NJAMD_FE_UTIL_ERR_H__
#define __NJAMD_FE_UTIL_ERR_H__

#include <fe/njamd.h>

#define perrfn(ret, fn, file, line, format, args...) \
	err(ret, "ERROR in function %s: %s: %i:\n" format, fn, file, line, ## args)

void err(int ret, const char* format, ...);
void verr(int ret, const char* format, va_list args);
void warn(const char* format, ...);
void vwarn(const char* format, va_list args);

#endif /* __NJAMD_FE_UTIL_ERR_H__ */