rose edit: fix namespace section bug.
rose edit: refactor compulsory macro.