Use boolean macro in exc_equal.
Merge pull request #2284 from yui-knk/use-macro

Use boolean macro in exc_equal.