Use boolean macro
Merge pull request #2270 from suzukaze/refactor-class.c

Use boolean macro