logging.h 432 B

12345678910111213141516171819
  1. /** \file logging.h
  2. * \brief Header: provides a log file to ease tracing the program
  3. */
  4. #ifndef MC_LOGGING_H
  5. #define MC_LOGGING_H
  6. /*
  7. This file provides an easy-to-use function for writing all kinds of
  8. events into a central log file that can be used for debugging.
  9. */
  10. #define mc_log_mark() mc_log("%s:%d\n",__FILE__,__LINE__)
  11. extern void mc_log(const char *, ...)
  12. __attribute__((__format__(__printf__,1,2)));
  13. #endif