summaryrefslogtreecommitdiffhomepage
path: root/dev/lib/io
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-18 07:44:48 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-18 07:55:34 +0100
commit9eec329ebdf4cf079619edb58dbcd78ce42b8626 (patch)
treeb9b6d442f8a92fea4c8943a1504dba105b133596 /dev/lib/io
parentce3ce66e005eb54b315dbc0c78a74e56e2db4191 (diff)
feat: lib: error_handler improvements, new method. FIX module improvements.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/lib/io')
-rw-r--r--dev/lib/io/print.hpp24
1 files changed, 15 insertions, 9 deletions
diff --git a/dev/lib/io/print.hpp b/dev/lib/io/print.hpp
index 307c06f..466b698 100644
--- a/dev/lib/io/print.hpp
+++ b/dev/lib/io/print.hpp
@@ -13,13 +13,6 @@
namespace ocl::io
{
- template <typename T, typename... Args>
- inline void print(T fmt, Args... other) noexcept
- {
- std::cout << fmt;
- print(other...);
- }
-
template <typename T>
inline void print(T fmt) noexcept
{
@@ -28,14 +21,27 @@ namespace ocl::io
inline void print() noexcept
{
- std::cout << std::endl;
+ }
+
+ template <typename... Args>
+ inline void print(Args... fmt) noexcept
+ {
+ print(fmt...);
+ print();
+ }
+
+ template <typename T, typename... Args>
+ inline void print(T fmt, Args... other) noexcept
+ {
+ std::cout << fmt;
+ print(other...);
}
template <typename... T>
inline void println(T... fmt) noexcept
{
print(fmt...);
- print();
+ print("\n");
}
} // namespace ocl::io