fix #120: Compile error when define inline function with if-else block