MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Classes | Namespaces | Defines
mdsStaticAssert.h File Reference

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2005 by Michal Spanel
. More...

#include "mdsSetup.h"

Classes

struct  mds::SCompileTimeError< true >
 Specialization of the sCompileTimeError helper structure. More...

Namespaces

namespace  mds
 

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2005 by Michal Spanel


Defines

#define MDS_STATIC_ASSERT(cond, msg)
 Static assertation macro.

Detailed Description

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2005 by Michal Spanel
.

Author: Michal Spanel, spanel@fit.vutbr.cz
Date: 2004/11/29

Id:
mdsStaticAssert.h 1863 2010-08-31 20:40:15Z spanel

Description:


Define Documentation

#define MDS_STATIC_ASSERT (   cond,
  msg 
)
Value:
{ \
    mds::SCompileTimeError<((cond) != 0)> MDS_ERROR_##msg; (void)MDS_ERROR_##msg; \
}

Static assertation macro.

Parameter cond is a compile-time integral or pointer expression. If cond is zero, msg will appear in a compile-time error message.