Merge branch 'fixNdebug' into 'master'
added missing ifdef for debug See merge request !94
This commit is contained in:
@@ -399,7 +399,9 @@ namespace OMFormat {
|
|||||||
template <typename T> Chunk::Integer_Size integer_size(const T& d)
|
template <typename T> Chunk::Integer_Size integer_size(const T& d)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
#ifndef NDEBUG
|
||||||
assert( is_integer(d) );
|
assert( is_integer(d) );
|
||||||
|
#endif
|
||||||
|
|
||||||
switch( sizeof(T) )
|
switch( sizeof(T) )
|
||||||
{
|
{
|
||||||
@@ -423,7 +425,9 @@ namespace OMFormat {
|
|||||||
template <typename T> Chunk::Float_Size float_size(const T& d)
|
template <typename T> Chunk::Float_Size float_size(const T& d)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
#ifndef NDEBUG
|
||||||
assert( is_float(d) );
|
assert( is_float(d) );
|
||||||
|
#endif
|
||||||
|
|
||||||
switch( sizeof(T) )
|
switch( sizeof(T) )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user