branch | pyrit |
changeset 22 | 76b7bd51d64a |
parent 21 | 79b516a3803d |
child 23 | 7e258561a690 |
21:79b516a3803d | 22:76b7bd51d64a |
---|---|
1 #ifndef COMMON_H |
|
2 #define COMMON_H |
|
3 |
|
4 #include <stdio.h> |
|
5 #include <stdarg.h> |
|
6 #include <float.h> |
|
7 |
|
8 #define Eps 1e-6 |
|
9 #define Inf FLT_MAX |
|
10 |
|
11 inline void infomsg(const char *format, ...) |
|
12 { |
|
13 #ifndef PYRIT_QUITE |
|
14 va_list ap; |
|
15 va_start(ap, format); |
|
16 vprintf(format, ap); |
|
17 va_end(ap); |
|
18 #endif |
|
19 } |
|
20 |
|
21 #endif |