From ac2debcd00dd78ad77f58d0c448862b76619ea61 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 9 Jan 2025 13:12:48 +0100 Subject: ADD: Minor improvements and refactors. Signed-off-by: Amlal El Mahrouss --- dev/LibCompiler/src/Detail/AsmUtils.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'dev/LibCompiler/src/Detail') diff --git a/dev/LibCompiler/src/Detail/AsmUtils.h b/dev/LibCompiler/src/Detail/AsmUtils.h index 4168dea..91ee940 100644 --- a/dev/LibCompiler/src/Detail/AsmUtils.h +++ b/dev/LibCompiler/src/Detail/AsmUtils.h @@ -11,11 +11,11 @@ using namespace LibCompiler; -namespace Details +namespace Detail { extern void print_error(std::string reason, std::string file) noexcept; extern void print_warning(std::string reason, std::string file) noexcept; -} // namespace Details +} // namespace Detail /// @brief Get Number from lineBuffer. /// @param lineBuffer the lineBuffer to fetch from. @@ -37,7 +37,7 @@ static NumberCast32 GetNumber32(std::string lineBuffer, std::string numberKey) { if (errno != 0) { - Details::print_error("invalid hex number: " + lineBuffer, "LibCompiler"); + Detail::print_error("invalid hex number: " + lineBuffer, "LibCompiler"); throw std::runtime_error("invalid_hex"); } } @@ -57,7 +57,7 @@ static NumberCast32 GetNumber32(std::string lineBuffer, std::string numberKey) { if (errno != 0) { - Details::print_error("invalid binary number:" + lineBuffer, "LibCompiler"); + Detail::print_error("invalid binary number:" + lineBuffer, "LibCompiler"); throw std::runtime_error("invalid_bin"); } } @@ -77,7 +77,7 @@ static NumberCast32 GetNumber32(std::string lineBuffer, std::string numberKey) { if (errno != 0) { - Details::print_error("invalid octal number: " + lineBuffer, "LibCompiler"); + Detail::print_error("invalid octal number: " + lineBuffer, "LibCompiler"); throw std::runtime_error("invalid_octal"); } } @@ -97,7 +97,7 @@ static NumberCast32 GetNumber32(std::string lineBuffer, std::string numberKey) { if (errno != 0) { - Details::print_error("invalid hex number: " + lineBuffer, "LibCompiler"); + Detail::print_error("invalid hex number: " + lineBuffer, "LibCompiler"); throw std::runtime_error("invalid_hex"); } } -- cgit v1.2.3