[DEV] add bad element in the init of the vector to prevent not init error
This commit is contained in:
parent
fb13e03dc9
commit
951a94c0d9
@ -24,7 +24,15 @@ namespace etk
|
||||
/*****************************************************
|
||||
* Constructor
|
||||
*****************************************************/
|
||||
Vector2D(void) { }; // do nothing ==> better for optimisation
|
||||
Vector2D(void)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
// in debug mode we set supid value to prevent forget of the inits ...
|
||||
m_floats[0] = (T)34673363;
|
||||
m_floats[1] = (T)34523535;
|
||||
#endif
|
||||
};
|
||||
|
||||
Vector2D(T _x, T _y)
|
||||
{
|
||||
m_floats[0] = _x;
|
||||
|
@ -30,6 +30,13 @@ namespace etk
|
||||
*/
|
||||
Vector3D(void)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
// in debug mode we set supid value to prevent forget of the inits ...
|
||||
m_floats[0] = (T)34673363;
|
||||
m_floats[1] = (T)34523535;
|
||||
m_floats[2] = (T)43523424;
|
||||
m_floats[3] = (T)23452345;
|
||||
#endif
|
||||
}
|
||||
/**
|
||||
* @brief Constructor from scalars
|
||||
|
Loading…
x
Reference in New Issue
Block a user