Skip to content

BUG: Flawed logic for itkExceptionObject.h guards - #1048

Merged
hjmjohnson merged 1 commit into
InsightSoftwareConsortium:masterfrom
hjmjohnson:fix-itkExceptionMacro-guards
Jun 30, 2019
Merged

BUG: Flawed logic for itkExceptionObject.h guards#1048
hjmjohnson merged 1 commit into
InsightSoftwareConsortium:masterfrom
hjmjohnson:fix-itkExceptionMacro-guards

Conversation

@hjmjohnson

Copy link
Copy Markdown
Member

The desire is that itkExceptionObject.h can only be included from
itkMacro.h, but the conditional logic allowed itkExceptionObject.h to be
included as long as itkMacro.h was included first.

Additionally the KWSys enforced style was violated because
itkExceptionObject_h was not defined at the top of the
itkExceptionObject.h file.

@hjmjohnson
hjmjohnson requested review from dzenanz and thewtex June 30, 2019 03:06
@hjmjohnson hjmjohnson self-assigned this Jun 30, 2019
The desire is that itkExceptionObject.h can only be included from
itkMacro.h, but the conditional logic allowed itkExceptionObject.h to be
included as long as itkMacro.h was included first.

Additionally the KWSys enforced style was violated because
itkExceptionObject_h was not defined at the top of the
itkExceptionObject.h file.
@hjmjohnson
hjmjohnson force-pushed the fix-itkExceptionMacro-guards branch from fad9727 to 820b7d0 Compare June 30, 2019 14:19
@hjmjohnson
hjmjohnson merged commit 9b6d828 into InsightSoftwareConsortium:master Jun 30, 2019
@hjmjohnson
hjmjohnson deleted the fix-itkExceptionMacro-guards branch October 23, 2019 13:27
@hjmjohnson hjmjohnson mentioned this pull request Jun 8, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants