Blender  V3.3
Cast.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
10 namespace Freestyle {
11 
12 namespace Cast {
13 template<class T, class U> U *cast(T *in)
14 {
15  if (!in) {
16  return NULL;
17  }
18  return dynamic_cast<U *>(in);
19 }
20 } // end of namespace Cast
21 
22 } /* namespace Freestyle */
unsigned int U
Definition: btGjkEpa3.h:78
#define T
U * cast(T *in)
Definition: Cast.h:13
inherits from class Rep
Definition: AppCanvas.cpp:18