From fe99a16c6d125186a08ce8a45b74684df24692f5 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 27 Mar 2026 00:31:56 +0100 Subject: [FEAT] Rework and moved nrt.nc to start.nhh. Signed-off-by: Amlal El Mahrouss --- include/GenericsLibrary/nrt.nc | 15 --------------- include/GenericsLibrary/start.nhh | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 15 deletions(-) delete mode 100644 include/GenericsLibrary/nrt.nc create mode 100644 include/GenericsLibrary/start.nhh (limited to 'include') diff --git a/include/GenericsLibrary/nrt.nc b/include/GenericsLibrary/nrt.nc deleted file mode 100644 index 0a62d81..0000000 --- a/include/GenericsLibrary/nrt.nc +++ /dev/null @@ -1,15 +0,0 @@ -// 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 - -import main; - -//@ 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(); -} - 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); +} + -- cgit v1.2.3