add macros used in class define
Merge pull request #2 from aholic/master

add macros used in class define