diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-02-12 20:41:04 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-02-12 20:41:04 +0100 |
| commit | 89effd74d93b37025053c66bbbbd1deaea171321 (patch) | |
| tree | 4db413296c8c1e00e4126b2d622402a474b62119 /include/GenericsLibrary | |
| parent | e8cebdd573c584dc51c396b35810ca08cb350c82 (diff) | |
feat: add 'io.nhh' header.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/GenericsLibrary')
| -rw-r--r-- | include/GenericsLibrary/fstream.nhh | 3 | ||||
| -rw-r--r-- | include/GenericsLibrary/io.nhh | 16 |
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 |
