summaryrefslogtreecommitdiffhomepage
path: root/include/GenericsLibrary
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-23 00:42:27 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-23 00:42:27 +0100
commit1b90b46dd64b1441258a3bccbb4c85749144dab3 (patch)
tree6bf00cbde6918bb0af22ba6df1dbc4d53aaf742b /include/GenericsLibrary
parent9ee6ece95bc126cb48bb1ede0d37ccbbefc0295d (diff)
feat: compiler: use `.nc` extension for Nectar sources--and `.nhh` for
nectar modules. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/GenericsLibrary')
-rw-r--r--include/GenericsLibrary/fstream.nhh10
-rw-r--r--include/GenericsLibrary/iterator.nhh14
2 files changed, 12 insertions, 12 deletions
diff --git a/include/GenericsLibrary/fstream.nhh b/include/GenericsLibrary/fstream.nhh
index a40a8e7..19cd935 100644
--- a/include/GenericsLibrary/fstream.nhh
+++ b/include/GenericsLibrary/fstream.nhh
@@ -3,13 +3,13 @@
// file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0)
// Official repository: https://github.com/nekernel-org/nectar
-#ifndef NECTAR_LIBNECTAR_FSTREAM_NHH
-#define NECTAR_LIBNECTAR_FSTREAM_NHH
+#ifndef NECTAR_GL_FSTREAM_NHH
+#define NECTAR_GL_FSTREAM_NHH
#include <GenericsLibrary/iterator.nhh>
-// Rules for fstream implementation:
-// - fd_ is the file descriptor.
+//@ Rules for fstream implementation:
+//@ - fd_ is the file descriptor.
trait fstream_traits
{
let write(let data, let size);
@@ -45,4 +45,4 @@ impl fstream : fstream_traits
}
};
-#endif // NECTAR_LIBNECTAR_FSTREAM_NHH \ No newline at end of file
+#endif // NECTAR_GL_FSTREAM_NHH \ No newline at end of file
diff --git a/include/GenericsLibrary/iterator.nhh b/include/GenericsLibrary/iterator.nhh
index 3e6c723..0812861 100644
--- a/include/GenericsLibrary/iterator.nhh
+++ b/include/GenericsLibrary/iterator.nhh
@@ -3,13 +3,13 @@
// file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0)
// Official repository: https://github.com/nekernel-org/nectar
-#ifndef NECTAR_LIBNECTAR_ITERATOR_NHH
-#define NECTAR_LIBNECTAR_ITERATOR_NHH
+#ifndef NECTAR_GL_ITERATOR_NHH
+#define NECTAR_GL_ITERATOR_NHH
-// Rules for iterator implementation:
-// - _begin is the starting point of the iterator.
-// - _end is the number of elements to iterate over.
-// - _size is the total size of the collection.
+//@ Rules for iterator implementation:
+//@ - _begin is the starting point of the iterator.
+//@ - _end is the number of elements to iterate over.
+//@ - _size is the total size of the collection.
trait iterator_traits
{
let _begin := 0;
@@ -53,4 +53,4 @@ impl iterator : iterator_traits
}
};
-#endif // NECTAR_LIBNECTAR_ITERATOR_NHH \ No newline at end of file
+#endif // NECTAR_GL_ITERATOR_NHH \ No newline at end of file