| * Copyright (c) 2018 Oticon A/S |
| * SPDX-License-Identifier: Apache-2.0 |
| #ifndef ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_ARCH_INTERNAL_H_ |
| #define ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_ARCH_INTERNAL_H_ |
| #include <zephyr/toolchain.h> |
| #define PC_SAFE_CALL(a) pc_safe_call(a, #a) |
| static inline void pc_safe_call(int test, const char *test_str) |
| /* LCOV_EXCL_START */ /* See Note1 */ |
| posix_print_error_and_exit("POSIX arch: Error on: %s\n", |
| #endif /* ZEPHYR_ARCH_POSIX_INCLUDE_POSIX_ARCH_INTERNAL_H_ */ |
| * All checks for the host pthreads functions which are wrapped by PC_SAFE_CALL |
| * are meant to never fail, and therefore will not be covered. |