From 31ae1f457327ff37c4a47889859f0b468e1fdefe Mon Sep 17 00:00:00 2001 From: Isuru Samarathunga Date: Thu, 11 Sep 2025 13:11:53 +0530 Subject: [PATCH] HF --- Dependencies/IACore | 2 +- Src/IAEngine/inc/IAEngine/Base.hpp | 30 ++++++------------------------ Vendor/SDL | 2 +- Vendor/SDL_Mixer | 2 +- Vendor/imgui | 2 +- 5 files changed, 10 insertions(+), 28 deletions(-) diff --git a/Dependencies/IACore b/Dependencies/IACore index 8e2e118..0fd33d9 160000 --- a/Dependencies/IACore +++ b/Dependencies/IACore @@ -1 +1 @@ -Subproject commit 8e2e118dd51b56786a9ae0dda33a7e3ec208ce24 +Subproject commit 0fd33d958e626a605d5d8629329383fda45b380c diff --git a/Src/IAEngine/inc/IAEngine/Base.hpp b/Src/IAEngine/inc/IAEngine/Base.hpp index 8d9311e..d164cc5 100644 --- a/Src/IAEngine/inc/IAEngine/Base.hpp +++ b/Src/IAEngine/inc/IAEngine/Base.hpp @@ -16,6 +16,7 @@ #pragma once +#include #include #include #include @@ -23,33 +24,14 @@ #include -#define IAE_LOG_INFO ia::iae::LogInfo -#define IAE_LOG_WARN ia::iae::LogWarn -#define IAE_LOG_ERROR ia::iae::LogError +#define IAE_LOG_TAG "IAE" + +#define IAE_LOG_INFO(...) ia::Logger::Info(IAE_LOG_TAG, __VA_ARGS__) +#define IAE_LOG_WARN(...) ia::Logger::Warn(IAE_LOG_TAG, __VA_ARGS__) +#define IAE_LOG_ERROR(...) ia::Logger::Error(IAE_LOG_TAG, __VA_ARGS__) namespace ia::iae { using Handle = INT64; STATIC CONSTEXPR Handle INVALID_HANDLE = -1; - - template VOID LogInfo(Args... args) - { - StringStream ss; - UNUSED((ss << ... << args)); - printf(__CC_GREEN "[INFO]: %s\n" __CC_DEFAULT, ss.str().c_str()); - } - - template VOID LogWarn(Args... args) - { - StringStream ss; - UNUSED((ss << ... << args)); - printf(__CC_YELLOW "[WARN]: %s\n" __CC_DEFAULT, ss.str().c_str()); - } - - template VOID LogError(Args... args) - { - StringStream ss; - UNUSED((ss << ... << args)); - printf(__CC_RED "[ERROR]: %s\n" __CC_DEFAULT, ss.str().c_str()); - } } // namespace ia::iae \ No newline at end of file diff --git a/Vendor/SDL b/Vendor/SDL index cfa31df..4efdfd9 160000 --- a/Vendor/SDL +++ b/Vendor/SDL @@ -1 +1 @@ -Subproject commit cfa31df2d5e4b76648896d3a50b49bd254054143 +Subproject commit 4efdfd92a24ff3bbe6780666189000bf5d84ed30 diff --git a/Vendor/SDL_Mixer b/Vendor/SDL_Mixer index 40a580f..1729977 160000 --- a/Vendor/SDL_Mixer +++ b/Vendor/SDL_Mixer @@ -1 +1 @@ -Subproject commit 40a580fe85c1092c9719b6588739a5e00517d022 +Subproject commit 172997758bb69c9217a2caec57bd9450d86dc558 diff --git a/Vendor/imgui b/Vendor/imgui index 02af06e..8eb22ea 160000 --- a/Vendor/imgui +++ b/Vendor/imgui @@ -1 +1 @@ -Subproject commit 02af06ea5f57696b93f0dfe77a9e2525522ba76e +Subproject commit 8eb22ea6203f2653c317670277d4b9604cbae068