verbose.h 418 B

123456789101112131415161718192021
  1. #ifndef IGL_VERBOSE_H
  2. #define IGL_VERBOSE_H
  3. #include "igl_inline.h"
  4. // Provide a macro for printf, called verbose that functions exactly like
  5. // printf if VERBOSE is defined and does exactly nothing if VERBOSE is
  6. // undefined
  7. #include <cstdio>
  8. #ifdef VERBOSE
  9. # include <cstdarg>
  10. #endif
  11. namespace igl
  12. {
  13. IGL_INLINE int verbose(const char * msg,...);
  14. }
  15. #ifdef IGL_HEADER_ONLY
  16. # include "verbose.cpp"
  17. #endif
  18. #endif