-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.h
More file actions
21 lines (17 loc) · 930 Bytes
/
debug.h
File metadata and controls
21 lines (17 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef ARIA_DEBUG_H_
#define ARIA_DEBUG_H_
void print(const char *str, ...);
void panic(const char *str, ...);
#define RETURN_ERROR \
({ \
print("dufay: warning: function <%s> within <%s> failed on line=%d\n", \
__FILE__, __func__, __LINE__); \
return -1; \
})
#define REPORT_ERROR \
({ \
print( \
"dufay: reporting problem: function <%s> within <%s> failed on line=%d\n", \
__FILE__, __func__, __LINE__); \
})
#endif