src/common.h
branchpyrit
changeset 20 f22952603f29
parent 15 a0a3e334744f
equal deleted inserted replaced
19:4e0955fca797 20:f22952603f29
     1 #ifndef COMMON_H
     1 #ifndef COMMON_H
     2 #define COMMON_H
     2 #define COMMON_H
     3 
     3 
       
     4 #include <stdio.h>
       
     5 #include <stdarg.h>
     4 #include <float.h>
     6 #include <float.h>
     5 
     7 
     6 #define Eps 1e-6
     8 #define Eps 1e-6
     7 #define Inf FLT_MAX
     9 #define Inf FLT_MAX
     8 
    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);
     9 #endif
    18 #endif
       
    19 }
       
    20 
       
    21 #endif