ide: #undef GUI_APP_MAIN_HOOK to avoid warning

git-svn-id: svn://ultimatepp.org/upp/trunk@12180 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-08-23 08:07:04 +00:00
parent 7d43aac9af
commit 00e99f14ef

View file

@ -108,8 +108,8 @@ void StartEditorMode(const Vector<String>& args, Ide& ide, bool& clset)
// TODO: I do not like that we need to define macro here.
// I opt for std::function version. We need to fix that API
// in 2018.2 release. #1901
//
// This method generates warning GUI_APP_MAIN_HOOCK redefined!!!
#undef GUI_APP_MAIN_HOOK
#define GUI_APP_MAIN_HOOK \
{ \
BaseCommandLineHandler cmd_handler(CommandLine()); \