GeoDesk for C++
Fast and storage-efficient spatial database engine for OpenStreetMap features
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Typedefs
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
Typedefs
Related Symbols
Files
File List
File Members
All
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
log.h
Go to the documentation of this file.
1
// Copyright (c) 2024 Clarisma / GeoDesk contributors
2
// SPDX-License-Identifier: LGPL-3.0-only
3
4
#pragma once
5
6
#include <stdio.h>
7
#include <
clarisma/cli/ConsoleWriter.h
>
8
9
namespace
clarisma
{
10
11
#ifndef NDEBUG
12
#define LOG(fmt, ...) printf(fmt "\n", ##__VA_ARGS__)
13
#else
14
#define LOG(fmt, ...) do {} while (0)
15
#endif
16
17
#define FORCE_LOG(fmt, ...) printf(fmt "\n", ##__VA_ARGS__)
18
19
#ifndef NDEBUG
20
#define LOGS clarisma::ConsoleWriter().timestamp() << " "
21
#else
22
#define LOGS if(false) ConsoleWriter().timestamp()
23
#endif
24
25
26
}
// namespace clarisma
ConsoleWriter.h
clarisma
Definition
Arena.h:17
include
clarisma
util
log.h
Generated by
1.12.0