Ben Tyner | 032bf9e | 2020-05-06 21:27:54 -0500 | [diff] [blame^] | 1 | #include <assert.h> |
2 | #include <stdarg.h> | ||||
3 | #include <stdio.h> | ||||
4 | |||||
5 | namespace libhei | ||||
6 | { | ||||
7 | |||||
8 | void hei_inf(char* format, ...) | ||||
9 | { | ||||
10 | va_list args; | ||||
11 | |||||
12 | printf("I> "); | ||||
13 | va_start(args, format); | ||||
14 | vprintf(format, args); | ||||
15 | va_end(args); | ||||
16 | printf("\n"); | ||||
17 | } | ||||
18 | |||||
19 | void hei_err(char* format, ...) | ||||
20 | { | ||||
21 | va_list args; | ||||
22 | |||||
23 | printf("E> "); | ||||
24 | va_start(args, format); | ||||
25 | vprintf(format, args); | ||||
26 | va_end(args); | ||||
27 | printf("\n"); | ||||
28 | } | ||||
29 | |||||
30 | } // namespace libhei |