Blender
V5.3
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
#include "
CLG_log.h
"
8
9
#include "
../opencolorio.hh
"
10
11
namespace
blender::ocio
{
12
13
static
CLG_LogRef
LOG
= {
"color_management"
};
14
15
void
report_exception
(
const
OCIO_NAMESPACE::Exception &exception)
16
{
17
CLOG_ERROR
(&
LOG
,
"OpenColorIO Error: %s"
, exception.what());
18
}
19
20
void
report_error
(
const
StringRefNull
error)
21
{
22
CLOG_ERROR
(&
LOG
,
"OpenColorIO Error: %s"
, error.
c_str
());
23
}
24
25
}
// namespace blender::ocio
CLG_log.h
CLOG_ERROR
#define CLOG_ERROR(clg_ref,...)
Definition
CLG_log.h:188
blender::StringRefNull
Definition
BLI_string_ref.hh:144
blender::StringRefNull::c_str
constexpr const char * c_str() const
error_handling.hh
blender::ocio
Definition
BLF_api.hh:39
blender::ocio::LOG
static CLG_LogRef LOG
Definition
error_handling.cc:13
blender::ocio::report_exception
void report_exception(const OCIO_NAMESPACE::Exception &exception)
Definition
error_handling.cc:15
blender::ocio::report_error
void report_error(const StringRefNull error)
Definition
error_handling.cc:20
opencolorio.hh
CLG_LogRef
Definition
CLG_log.h:78
Generated on
for Blender by
doxygen
1.18.0