Derive-C
Loading...
Searching...
No Matches
prelude.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
derive-c/utils/log/trait.h
>
4
#include <
derive-c/core/require.h
>
5
#include <
derive-c/utils/log/macros.h
>
6
7
#if defined DC_LOG_HEADER
8
#include DC_LOG_HEADER
9
#else
10
#include <
derive-c/utils/log/loggers/null.h
>
11
#endif
12
13
#if !defined(DC_LOGGER)
14
#error \
15
"The provided logging implementation does not define DC_LOGGER, which derive-c needs to call"
16
#endif
17
18
DC_TRAIT_LOGGER
(
DC_LOGGER
);
19
20
#define DC_LOG(...) DC_LOGGER_LOG(DC_LOGGER, __VA_ARGS__)
21
#define DC_LOGGER_NEW(...) DC_LOGGER_FROM_PARENT(DC_LOGGER, __VA_ARGS__)
DC_LOGGER
#define DC_LOGGER
Definition
file.h:168
macros.h
null.h
require.h
trait.h
DC_TRAIT_LOGGER
#define DC_TRAIT_LOGGER(SELF)
Definition
trait.h:43
src
derive-c
utils
log
prelude.h
Generated by
1.16.0