From 7a2804ac7e848120262ea59139385ee8669d7881 Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 3 Jun 2020 18:54:42 +0200 Subject: [PATCH] Use the WUMS_APPLICATION_STARTS hook instead of the main() function --- source/main.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source/main.cpp b/source/main.cpp index 4bce363..c7bc1b3 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -22,12 +22,11 @@ WUMS_INITIALIZE() { DEBUG_FUNCTION_LINE("total free space %d KiB", MemoryMapping_GetFreeSpace() / 1024); } -int main(int argc, char **argv) { +WUMS_APPLICATION_STARTS() { WHBLogUdpInit(); - MemoryMapping::DestroyHeaps(); - MemoryMapping::CreateHeaps(); - DEBUG_FUNCTION_LINE("total free space %d KiB", MemoryMapping::GetFreeSpace() / 1024); - return 0; + //MemoryMapping_DestroyHeaps(); + //MemoryMapping_CreateHeaps(); + DEBUG_FUNCTION_LINE("total free space %d KiB", MemoryMapping_GetFreeSpace() / 1024); } void MemoryMappingFree(void *ptr) {