smartifdef create
Merge https://github.com/robinchenyu/smartifdef