NewMadeleine

Documentation

nm_log.h
Go to the documentation of this file.
1/*
2 * NewMadeleine
3 * Copyright (C) 2006-2023 (see AUTHORS file)
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 */
15
16
17#ifndef NM_LOG_H
18#define NM_LOG_H
19
25#include <stdio.h>
26#include <stdlib.h>
27#include <unistd.h>
28#include <Padico/Puk.h>
29
30#define NM_DISPF(str, ...) padico_out(puk_verbose_info, str, ## __VA_ARGS__)
31
32#define NM_TRACEF(str, ...) padico_trace(str, ## __VA_ARGS__)
33
34#define NM_WARN(format, ...) padico_warning(format, ## __VA_ARGS__)
35
36#define NM_FATAL(format, ...) padico_fatal(format, ## __VA_ARGS__)
37
38
39#endif /* NM_LOG_H */