summaryrefslogtreecommitdiffhomepage
path: root/public/frameworks/LaunchHelpers.fwrk/src/Foundation.cc
blob: 05f039b9f094c23b531d8d649a3f6dd86120354f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/nekernel-org/nekernel

#include <LaunchHelpers.fwrk/headers/Foundation.h>
#include <libSystem/SystemKit/Syscall.h>

/// @brief Get launch information.
/// @return the launch information structure.
CF::CFRef<LaunchHelpers::LHLaunchInfo> LaunchHelpers::LHGetLaunchInfo(Void) {
  return static_cast<LaunchHelpers::LHLaunchInfo*>(
      libsys_syscall_arg_1(libsys_hash_64("__LHGetLaunchInfoRef")));
}