Loading...
Searching...
No Matches
log_module.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015 Kaspar Schleiser <kaspar@schleiser.de>
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
9#pragma once
10
25
26#include <stdio.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
41static inline void log_write(unsigned level, const char *format, ...) {
42 (void)level;
43 puts(format);
44}
45
46#ifdef __cplusplus
47}
48#endif
#define log_write(level,...)
Default log_write function, just maps to printf.
Definition log.h:119