From e11f553c9218bbd5c8fcc59d1afa172aeba90324 Mon Sep 17 00:00:00 2001 From: David Bommes Date: Mon, 17 Oct 2016 17:43:48 +0200 Subject: [PATCH] added missing ifdef for debug --- src/OpenMesh/Core/IO/OMFormat.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/OpenMesh/Core/IO/OMFormat.hh b/src/OpenMesh/Core/IO/OMFormat.hh index 93cc32fe..dd098929 100644 --- a/src/OpenMesh/Core/IO/OMFormat.hh +++ b/src/OpenMesh/Core/IO/OMFormat.hh @@ -399,7 +399,9 @@ namespace OMFormat { template Chunk::Integer_Size integer_size(const T& d) #endif { +#ifndef NDEBUG assert( is_integer(d) ); +#endif switch( sizeof(T) ) { @@ -423,7 +425,9 @@ namespace OMFormat { template Chunk::Float_Size float_size(const T& d) #endif { +#ifndef NDEBUG assert( is_float(d) ); +#endif switch( sizeof(T) ) {