@ -293,7 +293,12 @@ Containers::Optional<ImageData3D> AbstractImageConverter::convert(const ImageDat
# ifndef CORRADE_NO_ASSERT
# ifndef CORRADE_NO_ASSERT
namespace {
namespace {
template < UnsignedInt dimensions , template < UnsignedInt , class > class View > bool checkImageValidity ( const char * const messagePrefix , const View < dimensions , const char > & image ) {
template < UnsignedInt dimensions , template < UnsignedInt , class > class View > bool checkImageValidity ( const char *
# ifndef CORRADE_STANDARD_ASSERT
const messagePrefix
# endif
, const View < dimensions , const char > & image )
{
/* At some point there might be a file format that allows zero-sized
/* At some point there might be a file format that allows zero-sized
images , but so far I don ' t know about any . When such format appears ,
images , but so far I don ' t know about any . When such format appears ,
this check will get moved to plugin implementations that can ' t work with
this check will get moved to plugin implementations that can ' t work with
@ -560,7 +565,12 @@ AbstractImageConverter::convertToData(const ImageData3D& image) {
# ifndef CORRADE_NO_ASSERT
# ifndef CORRADE_NO_ASSERT
namespace {
namespace {
template < UnsignedInt dimensions > bool checkImageValidity ( const char * const messagePrefix , const Containers : : ArrayView < const BasicImageView < dimensions > > imageLevels ) {
template < UnsignedInt dimensions > bool checkImageValidity ( const char *
# ifndef CORRADE_STANDARD_ASSERT
const messagePrefix
# endif
, const Containers : : ArrayView < const BasicImageView < dimensions > > imageLevels )
{
CORRADE_ASSERT ( ! imageLevels . isEmpty ( ) ,
CORRADE_ASSERT ( ! imageLevels . isEmpty ( ) ,
messagePrefix < < " at least one image has to be specified " , false ) ;
messagePrefix < < " at least one image has to be specified " , false ) ;
@ -586,7 +596,12 @@ template<UnsignedInt dimensions> bool checkImageValidity(const char* const messa
return true ;
return true ;
}
}
template < UnsignedInt dimensions > bool checkImageValidity ( const char * const messagePrefix , const Containers : : ArrayView < const BasicCompressedImageView < dimensions > > imageLevels ) {
template < UnsignedInt dimensions > bool checkImageValidity ( const char *
# ifndef CORRADE_STANDARD_ASSERT
const messagePrefix
# endif
, const Containers : : ArrayView < const BasicCompressedImageView < dimensions > > imageLevels )
{
CORRADE_ASSERT ( ! imageLevels . isEmpty ( ) ,
CORRADE_ASSERT ( ! imageLevels . isEmpty ( ) ,
messagePrefix < < " at least one image has to be specified " , false ) ;
messagePrefix < < " at least one image has to be specified " , false ) ;