2009-02-05 21:28:18 +03:00
|
|
|
|
|
|
|
/** \file logging.h
|
|
|
|
* \brief Header: provides a log file to ease tracing the program
|
|
|
|
*/
|
|
|
|
|
2006-01-28 02:48:49 +03:00
|
|
|
#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.
|
|
|
|
*/
|
|
|
|
|
2009-11-24 12:36:44 +03:00
|
|
|
#define mc_log_mark() mc_log("%s:%d\n",__FILE__,__LINE__)
|
2009-10-30 01:55:36 +03:00
|
|
|
|
2006-01-28 02:48:49 +03:00
|
|
|
extern void mc_log(const char *, ...)
|
|
|
|
__attribute__((__format__(__printf__,1,2)));
|
|
|
|
|
|
|
|
#endif
|