aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-25 23:11:06 +0800
committercrupest <crupest@outlook.com>2018-11-25 23:11:06 +0800
commitb88992fd00df7b8c243bc0e7d577ef2aa9437c3f (patch)
treeb67d2be76343d4948b5b7fb57f80ec3d3a379ca7 /src/main.cpp
parent22322daf6f51da53740ff95ef2eaceed9a6efcae (diff)
downloadcru-b88992fd00df7b8c243bc0e7d577ef2aa9437c3f.tar.gz
cru-b88992fd00df7b8c243bc0e7d577ef2aa9437c3f.tar.bz2
cru-b88992fd00df7b8c243bc0e7d577ef2aa9437c3f.zip
Reorganize headers and add memory leak check.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 5cc98a72..7b27d95e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,3 +1,5 @@
+#include "pre.hpp"
+
#include "application.hpp"
#include "ui/window.hpp"
#include "ui/controls/linear_layout.hpp"
@@ -36,6 +38,10 @@ int APIENTRY wWinMain(
LPWSTR lpCmdLine,
int nCmdShow) {
+#ifdef CRU_DEBUG
+ _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
+#endif
+
Application application(hInstance);
const auto window = Window::CreateOverlapped();
@@ -225,7 +231,6 @@ int APIENTRY wWinMain(
window.AddChild(linear_layout);
*/
-
window->Show();
return application.Run();