Files
mc-old/lib/logging.h
Yury V. Zaytsev c3ff1763f6 formatting: step 4 - reformat all files with make indent
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2025-02-02 19:38:47 +01:00

31 lines
1.1 KiB
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.
*/
/*** typedefs(not structures) and defined constants **********************************************/
#define mc_log_mark() mc_log ("%s:%d\n", __FILE__, __LINE__)
/*** enums ***************************************************************************************/
/*** structures declarations (and typedefs of structures)*****************************************/
/*** global variables defined in .c file *********************************************************/
/*** declarations of public functions ************************************************************/
void mc_log (const char *fmt, ...) G_GNUC_PRINTF (1, 2);
void mc_always_log (const char *fmt, ...) G_GNUC_PRINTF (1, 2);
/*** inline functions ****************************************************************************/
#endif