| 
					
				 | 
			
			
				@@ -28,7 +28,7 @@ size_t popCount(u64 u) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 [[noreturn]] void coreExitWithHandler(const char* file, int line, int value) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if(value != 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         file = getShortFileName(file); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        CORE_LOG_ERROR("Exit from %s:%d with value %d", file, line, value); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        LOG_ERROR("Exit from %s:%d with value %d", file, line, value); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if(exitHandler != nullptr) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         exitHandler(value, exitData); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -48,8 +48,8 @@ void setOutOfMemoryHandler(OutOfMemoryHandler h, void* data) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 static void* exitOnNull(void* p, size_t n) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if(p == nullptr) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        CORE_LOG_ERROR("Out of memory, requested '%zu' bytes", n); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        CORE_EXIT(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        LOG_ERROR("Out of memory, requested '%zu' bytes", n); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        EXIT(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return p; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -171,12 +171,12 @@ void coreFreeDebug(const char* file, int line, void* p) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     MemoryInfo* rp = w; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if(checkCanary(rp->canary)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         file = getShortFileName(file); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        CORE_LOG_ERROR("Free at %s:%d violated pre canary", file, line); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        CORE_EXIT(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        LOG_ERROR("Free at %s:%d violated pre canary", file, line); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        EXIT(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } else if(checkCanary((char*)rp + rp->size - sizeof(CANARY))) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         file = getShortFileName(file); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        CORE_LOG_ERROR("Free at %s:%d violated post canary", file, line); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        CORE_EXIT(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        LOG_ERROR("Free at %s:%d violated post canary", file, line); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        EXIT(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     removeMemoryInfo(rp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     RealFree(rp); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -184,7 +184,7 @@ void coreFreeDebug(const char* file, int line, void* p) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 void printMemoryReport() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     for(MemoryInfo* i = headMemoryInfo; i != nullptr; i = i->next) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        CORE_LOG_ERROR("%s:%d was not freed", i->buffer, i->line); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        LOG_ERROR("%s:%d was not freed", i->buffer, i->line); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |