From 62296fe57649a7d14e57d9db32e9f7cfd5c999d8 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 11 Dec 2025 08:36:40 +0100 Subject: chore: launch: ne_launch code improvements. Signed-off-by: Amlal El Mahrouss --- src/launch/LaunchKit/Foundation.h | 4 ++-- src/launch/src/.keep | 0 src/launch/src/AppMain.cc | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 src/launch/src/.keep (limited to 'src/launch') diff --git a/src/launch/LaunchKit/Foundation.h b/src/launch/LaunchKit/Foundation.h index d7eb901f..5fb8efea 100644 --- a/src/launch/LaunchKit/Foundation.h +++ b/src/launch/LaunchKit/Foundation.h @@ -15,7 +15,7 @@ #define NELAUNCH_INFO(MSG) PrintOut(nullptr, "INFO: [LAUNCH] %s\n", MSG) #define NELAUNCH_WARN(MSG) PrintOut(nullptr, "WARN: [LAUNCH] %s\n", MSG) -namespace Launch { +namespace LaunchKit { using AnyRef = CF::CFRef; using StatusRef = CF::CFRef; -} // namespace Launch +} // namespace LaunchKit diff --git a/src/launch/src/.keep b/src/launch/src/.keep deleted file mode 100644 index e69de29b..00000000 diff --git a/src/launch/src/AppMain.cc b/src/launch/src/AppMain.cc index 10e9ff2b..5f2a19f9 100644 --- a/src/launch/src/AppMain.cc +++ b/src/launch/src/AppMain.cc @@ -9,9 +9,9 @@ #include /// @note This called by _NeMain from its own runtime. -extern "C" SInt32 nelaunch_startup_fn(Void) { +IMPORT_C SInt32 nelaunch_startup_fn(Void) { /// Start LaunchHelpers.fwrk services, and make the launcher manageable too (via mgmt.launch) - UInt32* ret = (UInt32*) libsys_syscall_arg_1(libsys_hash_64("__launch_register_launch_service")); + UInt32* ret = static_cast(libsys_syscall_arg_1(libsys_hash_64("__launch_register_launch_service"))); if (ret) { switch (*ret) { -- cgit v1.2.3