1 /* 2 * Copyright (c) Meta Platforms, Inc. and affiliates. 3 * All rights reserved. 4 * 5 * This source code is licensed under the BSD-style license found in the 6 * LICENSE file in the root directory of this source tree. 7 */ 8 9 #include <executorch/runtime/platform/abort.h> 10 #include <executorch/runtime/platform/platform.h> 11 12 namespace executorch { 13 namespace runtime { 14 15 /** 16 * Trigger the ExecuTorch global runtime to immediately exit without cleaning 17 * up, and set an abnormal exit status (platform-defined). 18 */ runtime_abort()19ET_NORETURN void runtime_abort() { 20 et_pal_abort(); 21 } 22 23 } // namespace runtime 24 } // namespace executorch 25