repo.or.cz
/
alure.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove constexpr from Vector3::getLength and getDistance
[alure.git]
/
src
/
main.h
blob
18fa38cf8a3eecb56ab514afba81594a4f9d8d1c
1
#ifndef ALURE_MAIN_H
2
#define ALURE_MAIN_H
3
4
#include
"alure2.h"
5
6
namespace
alure
7
{
8
9
template
<
typename T
,
typename T2
>
10
inline
T
cast
(
T2 obj
)
11
#ifndef ALURE_USE_RTTI
12
{
return
obj
?
static_cast
<
T
>(
obj
) :
0
; }
13
#else
14
{
return
obj
?
dynamic_cast
<
T
>(
obj
) :
0
; }
15
#endif
16
17
}
// namespace alure
18
19
#endif
/* ALURE_MAIN_H */