Skip to content

Commit

Permalink
modified: inc/myexceptions.h
Browse files Browse the repository at this point in the history
  • Loading branch information
peeterjoot committed Apr 22, 2016
1 parent a589658 commit 5b2b5e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion phy1610-scientific-computing/inc/myexceptions.h
Expand Up @@ -83,6 +83,9 @@ typedef boost::error_info<tag_netcdf_strerror,const char *> netcdf_strerror_info
struct tag_intdata ;
typedef boost::error_info<tag_intdata,long> intdata_info ;

struct tag_intdata2 ;
typedef boost::error_info<tag_intdata2,long> intdata2_info ;

#define ASSERT_NO_ERROR (static_cast<void>(0))
#ifdef NDEBUG
#define ASSERT_DATA_INT( expr, v1 ) ASSERT_NO_ERROR
Expand All @@ -101,7 +104,7 @@ typedef boost::error_info<tag_intdata,long> intdata_info ;
: BOOST_THROW_EXCEPTION( \
assert_error() \
<< intdata_info( v1 ) \
<< intdata_info( v2 ) ) )
<< intdata2_info( v2 ) ) )
#endif

#endif

0 comments on commit 5b2b5e0

Please sign in to comment.