aboutsummaryrefslogtreecommitdiff
path: root/src/Core/Log.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-14 00:42:05 +0200
committerhachem <im@hachem.wtf>2025-08-14 00:42:05 +0200
commite050dce79b67ae6386240567a994454711ab998d (patch)
tree4b5f55471d86b8ee80d531696e65dcea3b713e7a /src/Core/Log.h
parent2e246683df3b18e8e129adb0ada25be5f82f5b59 (diff)
[add]: Custom memory managers and fix includes
Diffstat (limited to 'src/Core/Log.h')
-rw-r--r--src/Core/Log.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Core/Log.h b/src/Core/Log.h
index ad1b959..c7b2e47 100644
--- a/src/Core/Log.h
+++ b/src/Core/Log.h
@@ -1,7 +1,8 @@
#pragma once
+#include "Core/Memory.h"
+
#include <string>
-#include <memory>
#include <vector>
#include <sstream>
#include <iostream>
@@ -28,7 +29,7 @@ namespace Donut
static void Init();
static void Shutdown();
- static std::shared_ptr<Logger> GetLogger();
+ static Ref<Logger> GetLogger();
template<typename... Args>
static void Trace(const std::string_view& format, const Args&... args)
@@ -135,7 +136,7 @@ namespace Donut
std::ofstream m_LogFile;
std::mutex m_Mutex;
- static std::shared_ptr<Logger> s_Logger;
+ static Ref<Logger> s_Logger;
};
}