Archived
3
0
This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues or pull requests.
libipc-old/core/error.h
Philippe PITTOLI 1e44f3d00f msg format
2016-12-21 01:26:47 +01:00

11 lines
241 B
C

#ifndef __ERROR_H__
#define __ERROR_H__
#define handle_error(msg) \
do { perror(msg); exit(EXIT_FAILURE); } while (0)
#define handle_err(fun,msg)\
fprintf (stderr, "%s: file %s line %d %s\n", fun, __FILE__, __LINE__, msg);
#endif