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
21
namespace
lcf
{
22
namespace
Log {
23
24
void
Debug
(
const
char
*
fmt
, ...)
LIKE_PRINTF
;
25
void
Warning
(
const
char
*
fmt
, ...)
LIKE_PRINTF
;
26
void
Error
(
const
char
*
fmt
, ...)
LIKE_PRINTF
;
27
28
}
// namespace Log
29
}
// namespace lcf
30
31
#undef LIKE_PRINTF
32
33
#endif
lcf::Flags
Definition
reader_struct.h:694
LIKE_PRINTF
#define LIKE_PRINTF
Definition
log.h:18
lcf::Log::Warning
void Warning(const char *fmt,...) LIKE_PRINTF
Definition
log_handler.cpp:80
lcf::Log::Error
void Error(const char *fmt,...) LIKE_PRINTF
Definition
log_handler.cpp:90
lcf::Log::Debug
void Debug(const char *fmt,...) LIKE_PRINTF
Definition
log_handler.cpp:70
lcf
Definition
dbarray.cpp:13
src
log.h
Generated on Mon Apr 7 2025 00:00:00 for liblcf by
1.10.0