GeoDesk for C++
Fast and storage-efficient spatial database engine for OpenStreetMap features
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 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