summaryrefslogtreecommitdiffhomepage
path: root/include/GenericsLibrary
diff options
context:
space:
mode:
Diffstat (limited to 'include/GenericsLibrary')
-rw-r--r--include/GenericsLibrary/fstream.nhh3
-rw-r--r--include/GenericsLibrary/io.nhh16
2 files changed, 18 insertions, 1 deletions
diff --git a/include/GenericsLibrary/fstream.nhh b/include/GenericsLibrary/fstream.nhh
index b7a0a2e..5c6b0d4 100644
--- a/include/GenericsLibrary/fstream.nhh
+++ b/include/GenericsLibrary/fstream.nhh
@@ -18,6 +18,7 @@ trait fstream_traits
let fd_ := 0;
};
+//@ Implementation of fstream traits.
impl fstream : fstream_traits
{
let init()
@@ -45,4 +46,4 @@ impl fstream : fstream_traits
}
};
-#endif //@ NECTAR_GL_FSTREAM_NHH \ No newline at end of file
+#endif //@ NECTAR_GL_FSTREAM_NHH
diff --git a/include/GenericsLibrary/io.nhh b/include/GenericsLibrary/io.nhh
new file mode 100644
index 0000000..d99ae83
--- /dev/null
+++ b/include/GenericsLibrary/io.nhh
@@ -0,0 +1,16 @@
+// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org)
+// Licensed under the Apache License, Version 2.0 (See accompanying
+// file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0)
+// Official repository: https://github.com/nekernel-org/nectar
+
+#ifndef NECTAR_GL_IO_NHH
+#define NECTAR_GL_IO_NHH
+
+import printf;
+
+const writefn(let fmt, let args)
+{
+ printf(fmt, {args});
+}
+
+#endif