summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/src/Detail
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-01-09 13:12:48 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-01-09 13:12:48 +0100
commitac2debcd00dd78ad77f58d0c448862b76619ea61 (patch)
tree7a3b4201b7c60febcd08cdb99e97aa426302535c /dev/LibCompiler/src/Detail
parent4b0be5c40cab48a256f68c1e41b6af3d93512c61 (diff)
ADD: Minor improvements and refactors.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/LibCompiler/src/Detail')
-rw-r--r--dev/LibCompiler/src/Detail/AsmUtils.h12
1 files changed, 6 insertions, 6 deletions
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");
}
}