Remove constexpr from Vector3::getLength and getDistance
[alure.git] / src / main.h
blob18fa38cf8a3eecb56ab514afba81594a4f9d8d1c
1 #ifndef ALURE_MAIN_H
2 #define ALURE_MAIN_H
4 #include "alure2.h"
6 namespace alure
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
17 } // namespace alure
19 #endif /* ALURE_MAIN_H */