summaryrefslogtreecommitdiffhomepage
path: root/include/GenericsLibrary/start.nhh
diff options
context:
space:
mode:
Diffstat (limited to 'include/GenericsLibrary/start.nhh')
-rw-r--r--include/GenericsLibrary/start.nhh19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/GenericsLibrary/start.nhh b/include/GenericsLibrary/start.nhh
new file mode 100644
index 0000000..c678e7f
--- /dev/null
+++ b/include/GenericsLibrary/start.nhh
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: Apache-2.0
+// 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/ne-foss-org/nectar
+
+#pragma once
+
+extern main;
+import argc;
+import argv;
+
+//@ The main entrypoint is an external symbol defined by the user program.
+//@ You may also define it as a library and then write your own main wrapper over it.
+let _start()
+{
+ return main(argc, argv);
+}
+