liblcf
Loading...
Searching...
No Matches
log.h
Go to the documentation of this file.
1/*
2 * This file is part of liblcf. Copyright (c) liblcf authors.
3 * https://github.com/EasyRPG/liblcf - https://easyrpg.org
4 *
5 * liblcf is Free/Libre Open Source Software, released under the MIT License.
6 * For the full copyright and license information, please view the COPYING
7 * file that was distributed with this source code.
8 */
9
10#ifndef LCF_LOG_H
11#define LCF_LOG_H
12
13#include "lcf/log_handler.h"
14
15#ifdef __GNUG__
16 #define LIKE_PRINTF __attribute__((format(printf, 1, 2)))
17#else
18 #define LIKE_PRINTF
19#endif
20
21namespace lcf {
22namespace Log {
23
24void Debug(const char* fmt, ...) LIKE_PRINTF;
25void Warning(const char* fmt, ...) LIKE_PRINTF;
26void Error(const char* fmt, ...) LIKE_PRINTF;
27
28} // namespace Log
29} // namespace lcf
30
31#undef LIKE_PRINTF
32
33#endif
#define LIKE_PRINTF
Definition log.h:18
Definition log.h:22
void Warning(const char *fmt,...) LIKE_PRINTF
void Error(const char *fmt,...) LIKE_PRINTF
void Debug(const char *fmt,...) LIKE_PRINTF