Home
Forum
Documentation
C++
|
Lua
Issue Tracker
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
DebugLog.hpp
1
/*
2
Cafu Engine, http://www.cafu.de/
3
Copyright (c) Carsten Fuchs and other contributors.
4
This project is licensed under the terms of the MIT license.
5
*/
6
7
#ifndef CAFU_DEBUG_LOG_HPP_INCLUDED
8
#define CAFU_DEBUG_LOG_HPP_INCLUDED
9
10
11
namespace
cf
12
{
13
void
LogDebugBasic(
const
char
* Category,
const
char
* FileName,
const
int
LineNr,
const
char
* FormatString, ...);
14
15
inline
void
LogDebugNOP() { }
16
}
17
18
19
// Enable or disable debug logging here.
20
// Note that filters (which categories are included in or exempted from logging)
21
// are defined in the implementation of LogDebugBasic().
22
#if 0
23
#define LogDebug(cat, fmt, ...) LogDebugBasic(#cat, __FILE__, __LINE__, fmt, __VA_ARGS__)
24
#else
25
#define LogDebug(cat, fmt, ...) LogDebugNOP()
26
#endif
27
28
#endif
Libs
DebugLog.hpp
Generated on Wed Jun 22 2016 11:29:36 for Cafu Engine by
1.8.6
Copyright © 2002-2016 Carsten Fuchs Software.