From 89effd74d93b37025053c66bbbbd1deaea171321 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 12 Feb 2026 20:41:04 +0100 Subject: feat: add 'io.nhh' header. Signed-off-by: Amlal El Mahrouss --- include/CompilerKit/Utilities/DLL.h | 2 +- include/GenericsLibrary/fstream.nhh | 3 ++- include/GenericsLibrary/io.nhh | 16 ++++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 include/GenericsLibrary/io.nhh (limited to 'include') diff --git a/include/CompilerKit/Utilities/DLL.h b/include/CompilerKit/Utilities/DLL.h index f57ec4f..26eacea 100644 --- a/include/CompilerKit/Utilities/DLL.h +++ b/include/CompilerKit/Utilities/DLL.h @@ -70,7 +70,7 @@ class ModuleLoader final { }; using StrongDLLRef = StrongRef; -using WeakDLLRef = WeakRef; +using WeakDLLRef = WeakRef; #else #error No ModuleLoader defined. #endif 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 -- cgit v1.2.3