Changes for haxe3

'@:macro' becomes 'macro'

Unused variable in switch case becomes '_'