In reply to joao.fragoso:
This might be a tool or shell specific issue. But I think the best option would be to put a period(.) in the macro after the space.
"--define MOD_PATH=\\\\top.module(DATA_WITDH=8,MODEL=\"TYPE_A\") ."
`MOD_PATH task_a();