hachem.wtf
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
commit0d8b874c0048ca088bb9e353a5f7c62e1f8cd0e8 (patch)
tree2c0f3b13161489e4e91994882f8f2ed67a20bc0e /src/core/log.h
parent9671d5e54484b8bce261207d08ff15053ae24e48 (diff)
feat: 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 77324f5..1477226 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> get_logger();
+ static Ref<Logger> get_logger();
template<typename... Args>
static void trace(const std::string_view& format, const Args&... args)
@@ -135,7 +136,7 @@ namespace Donut
std::ofstream m_log_file;
std::mutex m_mutex;
- static std::shared_ptr<Logger> s_logger;
+ static Ref<Logger> s_logger;
};
}