Belle II Software  release-05-02-19
util.h
1 /* util.h */
2 
3 
4 #ifndef UTIL_H
5 #define UTIL_H
6 
7 #include <stdio.h>
8 #include <errno.h>
9 
10 #define ERROR(func) { fprintf(stderr, "[ERROR] %s:%d: "#func"(): %s\n", __FILE__, __LINE__, strerror(errno));}
11 
12 extern void dump_binary(FILE* fp, const void* ptr, const size_t size);
13 
14 
15 #endif /* UTIL_H */
16