SeismicData / asdf-library

Adaptable Seismic Data Format
16 stars 10 forks source link

Fix double evaluation in CHK_H5 macro. #3

Closed QuLogic closed 9 years ago

QuLogic commented 9 years ago

In the case that the call failed, this macro would perform the call again when returning the result. There is no reason why this second call would produce the same error, thus causing subtle masking of problems.

This is a common cause of bugs when writing macros.

mpbl commented 9 years ago

Thanks @QuLogic