summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-09-17 10:00:53 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-09-17 10:00:53 +0200
commit1c369ccc98734e72509509e9a5798a3aaa34dd70 (patch)
tree68c5ba79cf2fae57eeb1d708658a99b396a9defe
parentbba582964bded940f9dc280fd15ed84aa2db2d39 (diff)
feat: last commit before release (v1.0.44)
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
-rw-r--r--dev/lib/io/print.hpp2
-rw-r--r--dev/lib/logic/opt.hpp12
2 files changed, 7 insertions, 7 deletions
diff --git a/dev/lib/io/print.hpp b/dev/lib/io/print.hpp
index 40ae1bb..307c06f 100644
--- a/dev/lib/io/print.hpp
+++ b/dev/lib/io/print.hpp
@@ -35,7 +35,7 @@ namespace ocl::io
inline void println(T... fmt) noexcept
{
print(fmt...);
- print();
+ print();
}
} // namespace ocl::io
diff --git a/dev/lib/logic/opt.hpp b/dev/lib/logic/opt.hpp
index eff08eb..70bce5e 100644
--- a/dev/lib/logic/opt.hpp
+++ b/dev/lib/logic/opt.hpp
@@ -20,7 +20,7 @@ namespace ocl
count = err - okay + 1,
};
- template <typename char_type = char>
+ template <typename char_type = char>
struct opt final
{
explicit opt(const return_type& return_type)
@@ -38,14 +38,14 @@ namespace ocl
return *this;
}
- template <typename ErrorHandler>
+ template <typename ErrorHandler>
opt& expect_or_handle(const char_type* input)
{
if (m_ret == return_type::err)
- {
- ErrorHandler err_handler;
- err_handler(input ? input : "opt::error");
- }
+ {
+ ErrorHandler err_handler;
+ err_handler(input ? input : "opt::error");
+ }
return *this;
}