#ifndef BASE_MAC_SCOPED_LAUNCH_DATA_H_
#define BASE_MAC_SCOPED_LAUNCH_DATA_H_
#include <launch.h>
#include "base/scoped_generic.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
namespace base::mac {
namespace internal {
struct ScopedLaunchDataTraits {
static launch_data_t InvalidValue() { return nullptr; }
static void Free(launch_data_t ldt) { launch_data_free(ldt); }
};
}
using ScopedLaunchData =
ScopedGeneric<launch_data_t, internal::ScopedLaunchDataTraits>;
}
#pragma clang diagnostic pop
#endif