diff options
author | 杨宇千 <crupest@outlook.com> | 2019-07-11 00:43:27 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-07-11 00:43:27 +0800 |
commit | cafcbde7529f7c1e4219344df9a404ecdb411aa5 (patch) | |
tree | a4b515131bb026d12db92eaa1d3f9f32a7a65505 /src/main.cpp | |
parent | d163bafa461779a3795818aa8c8b5238880ede24 (diff) | |
download | cru-cafcbde7529f7c1e4219344df9a404ecdb411aa5.tar.gz cru-cafcbde7529f7c1e4219344df9a404ecdb411aa5.tar.bz2 cru-cafcbde7529f7c1e4219344df9a404ecdb411aa5.zip |
...
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp index f9c0e56b..9336dda7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,3 +1,4 @@ +#include "cru/platform/heap_debug.hpp" #include "cru/platform/native/native_window.hpp" #include "cru/platform/native/ui_applicaition.hpp" #include "cru/ui/controls/button.hpp" @@ -12,16 +13,11 @@ using cru::ui::Window; using cru::ui::controls::Button; using cru::ui::controls::FlexLayout; using cru::ui::controls::TextBlock; -/* -int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, - LPWSTR lpCmdLine, int nCmdShow) { -*/ int main() { - #ifdef CRU_DEBUG - _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); + cru::platform::SetupHeapDebug(); #endif std::unique_ptr<UiApplication> application(UiApplication::CreateInstance()); |