Blender
V5.0
source
blender
imbuf
opencolorio
intern
libocio
error_handling.cc
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2025 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#include "
error_handling.hh
"
6
7
#if defined(WITH_OPENCOLORIO)
8
9
# include "
CLG_log.h
"
10
11
# include "
../opencolorio.hh
"
12
13
namespace
blender::ocio
{
14
15
static
CLG_LogRef
LOG
= {
"color_management"
};
16
17
void
report_exception(
const
OCIO_NAMESPACE::Exception &exception)
18
{
19
CLOG_ERROR
(&
LOG
,
"OpenColorIO Error: %s"
, exception.what());
20
}
21
22
void
report_error(
const
StringRefNull
error
)
23
{
24
CLOG_ERROR
(&
LOG
,
"OpenColorIO Error: %s"
,
error
.c_str());
25
}
26
27
}
// namespace blender::ocio
28
29
#endif
CLG_log.h
CLOG_ERROR
#define CLOG_ERROR(clg_ref,...)
Definition
CLG_log.h:188
error_handling.hh
LOG
#define LOG(level)
Definition
log.h:97
error
static void error(const char *str)
Definition
meshlaplacian.cc:47
blender::ocio
Definition
BLF_api.hh:35
opencolorio.hh
Generated on
for Blender by
doxygen
1.16.1