summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-06-29 14:41:51 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-06-29 14:45:50 +0200
commit9158f48048eb8d56f4e9e6281d0c0b497690b4ee (patch)
treeef72be3044a7464f0606216ddf17c5c38bb9e964 /lib
parent5cd5d2bbad9976a1068cb610b10d80f6267f575f (diff)
feat: io/print.hpp: new print include header.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/crc32.hpp2
-rw-r--r--lib/embdfs.hpp4
-rw-r--r--lib/equiv.hpp2
-rw-r--r--lib/fix.hpp2
-rw-r--r--lib/io/print.hpp29
-rw-r--r--lib/math.hpp4
-rw-r--r--lib/opt.hpp7
7 files changed, 40 insertions, 10 deletions
diff --git a/lib/crc32.hpp b/lib/crc32.hpp
index 12dfbd1..726626e 100644
--- a/lib/crc32.hpp
+++ b/lib/crc32.hpp
@@ -12,7 +12,7 @@
#include <cstddef>
/// @brief Crc32 implementation in C++
-/// @author Amlal EL Mahrouss (amlal@nekernel.org)
+/// @author Amlal EL Mahrouss (founder@snu.systems)
namespace snu
{
diff --git a/lib/embdfs.hpp b/lib/embdfs.hpp
index 179cec2..af6118a 100644
--- a/lib/embdfs.hpp
+++ b/lib/embdfs.hpp
@@ -1,7 +1,7 @@
/*
* File: embfs.hpp
* Purpose: Embedded File System.
- * Author: Amlal El Mahrouss (amlal@nekernel.org)
+ * Author: Amlal El Mahrouss (founder@snu.systems)
* Copyright 2025, Amlal El Mahrouss all rights reserved.
*/
@@ -12,7 +12,7 @@
#include <cstddef>
/// @brief A Filesystem designed for tiny storage medias.
-/// @author Amlal EL Mahrouss (amlal@nekernel.org)
+/// @author Amlal EL Mahrouss (founder@snu.systems)
namespace snu::embdfs
{
diff --git a/lib/equiv.hpp b/lib/equiv.hpp
index 45534df..15512f4 100644
--- a/lib/equiv.hpp
+++ b/lib/equiv.hpp
@@ -1,7 +1,7 @@
/*
* File: equiv.hpp
* Purpose: equivalence runtime c++ header.
- * Author: Amlal El Mahrouss (amlal@nekernel.org)
+ * Author: Amlal El Mahrouss (founder@snu.systems)
* Copyright 2025, Amlal El Mahrouss all rights reserved.
*/
diff --git a/lib/fix.hpp b/lib/fix.hpp
index d4c95b4..1939979 100644
--- a/lib/fix.hpp
+++ b/lib/fix.hpp
@@ -1,7 +1,7 @@
/*
* File: fix.hpp
* Purpose: Financial Information Protocol implementation in C++.
- * Author: Amlal El Mahrouss (amlal@nekernel.org)
+ * Author: Amlal El Mahrouss (founder@snu.systems)
* Copyright 2025, Amlal El Mahrouss all rights reserved.
*/
diff --git a/lib/io/print.hpp b/lib/io/print.hpp
new file mode 100644
index 0000000..73b7663
--- /dev/null
+++ b/lib/io/print.hpp
@@ -0,0 +1,29 @@
+/*
+ * File: print.hpp
+ * Purpose: SNU Print library
+ * Author: Amlal El Mahrouss. (founder@snu.systems)
+ * Copyright 2025, SNU Systems Corp all rights reserved.
+ */
+
+#ifndef _STDX_PRINT_HPP
+#define _STDX_PRINT_HPP
+
+#include <iostream>
+
+namespace snu
+{
+ template <typename... T>
+ inline void print(const T&... fmt)
+ {
+ std::cout << std::forward(fmt...);
+ }
+
+ template <typename... T>
+ inline void println(T... fmt)
+ {
+ std::cout << std::move(fmt...);
+ std::cout << std::endl;
+ }
+} // namespace snu
+
+#endif // ifndef _STDX_PRINT_HPP \ No newline at end of file
diff --git a/lib/math.hpp b/lib/math.hpp
index c6ae939..2613799 100644
--- a/lib/math.hpp
+++ b/lib/math.hpp
@@ -1,7 +1,7 @@
/*
* File: math.hpp
* Purpose: Mathematics c++ header.
- * Author: Amlal El Mahrouss (amlal@nekernel.org)
+ * Author: Amlal El Mahrouss (founder@snu.systems)
* Copyright 2025, Amlal El Mahrouss all rights reserved.
*/
@@ -29,7 +29,7 @@ namespace snu::math
static constexpr const bool value = false;
};
- constexpr inline auto not_a_number = NAN;
+ constexpr inline auto not_a_number = NAN;
constexpr inline auto positive_infinity = INFINITY;
constexpr inline auto negative_infinity = -positive_infinity;
} // namespace snu::math \ No newline at end of file
diff --git a/lib/opt.hpp b/lib/opt.hpp
index b43b608..2c9405d 100644
--- a/lib/opt.hpp
+++ b/lib/opt.hpp
@@ -1,7 +1,7 @@
/*
* File: opt.hpp
* Author: Amlal El Mahrouss,
- * Copyright 2023-2025, Amlal El Mahrouss all rights reserved.
+ * Copyright 2023-2025, Amlal El Mahrouss/SNU Systems Corp all rights reserved.
*/
#ifndef _STDX_OPT_HPP
@@ -14,8 +14,9 @@ namespace snu
{
enum class ret
{
- okay,
- err
+ invalid,
+ okay = 100,
+ err,
};
struct opt final