mc/lib/logging.h
Slava Zanko 2fa4d9b952 Move logging.[ch] into library
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-01-26 10:30:26 +02:00

20 lines
432 B
C

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