1#ifndef AWS_COMMON_ERROR_INL 2#define AWS_COMMON_ERROR_INL 3 4/** 5 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 6 * SPDX-License-Identifier: Apache-2.0. 7 */ 8 9#include <aws/common/error.h> 10 11AWS_EXTERN_C_BEGIN 12 13/* 14 * Raises `err` to the installed callbacks, and sets the thread's error. 15 */ 16AWS_STATIC_IMPL 17int aws_raise_error(int err) { 18 /* 19 * Certain static analyzers can't see through the out-of-line call to aws_raise_error, 20 * and assume that this might return AWS_OP_SUCCESS. We'll put the return inline just 21 * to help with their assumptions. 22 */ 23 24 aws_raise_error_private(err); 25 26 return AWS_OP_ERR; 27} 28 29AWS_EXTERN_C_END 30 31#endif /* AWS_COMMON_ERROR_INL */ 32