Explicit return types of macro defs

Fixes false positive type checking error in IntelliJ IDEA