Blender
V5.0
source
blender
freestyle
intern
system
Cast.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
11
12
namespace
Freestyle
{
13
14
namespace
Cast
{
15
template
<
class
T,
class
U>
U
*
cast
(
T
*
in
)
16
{
17
if
(!
in
) {
18
return
nullptr
;
19
}
20
return
dynamic_cast<
U
*
>
(
in
);
21
}
22
}
// end of namespace Cast
23
24
}
/* namespace Freestyle */
U
#define U
cast
#define cast
Definition
gpu_shader_compat_cxx.hh:181
in
#define in
Definition
gpu_shader_compat_cxx.hh:50
T
#define T
Definition
mball_tessellate.cc:274
Freestyle::Cast
Definition
Cast.h:14
Freestyle
inherits from class Rep
Definition
AppCanvas.cpp:20
Generated on
for Blender by
doxygen
1.16.1