[Gdcm-hackers] [ gdcm-Bugs-2907022 ] A new macro for gdcmException.h?
Cross-platform DICOM implementation
Brought to you by:
malat
|
From: SourceForge.net <no...@so...> - 2011-12-30 18:36:36
|
Bugs item #2907022, was opened at 2009-12-01 09:40 Message generated for change (Settings changed) made by malat You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=739587&aid=2907022&group_id=137895 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General (default) >Group: 2.3 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Niels Dekker (niels_dekker) Assigned to: Mathieu Malaterre (malat) Summary: A new macro for gdcmException.h? Initial Comment: The default arguments of the explicit constructor of gdcm::Exception, __FILE__ and __LINE__, aren't very useful, because they always point to the class definition of gdcm::Exception itself, in gdcmException.h. It would be more useful if __FILE__ and __LINE__ would be specified at the source code locations where the gdcm::Exception objects are actually being created. A macro would be convenient, for example: #define GDCM_EXCEPTION(description) \ gdcm::Exception(description, __FILE__, __LINE__, __FUNCTION__) Which would allow doing: throw GDCM_EXCEPTION("My description"); Of course, such a macro could also have a different name, because people may not like all those capitals. As discussed at [Gdcm2]. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=739587&aid=2907022&group_id=137895 |