Sha256: 8f0fdec8fcb0b9ab1aa2ac618938664cacaaa974c5b4c225de89d16da3b3c2a9

Contents?: true

Size: 705 Bytes

Versions: 13

Compression:

Stored size: 705 Bytes

Contents

#ifndef AWS_COMMON_ERROR_INL
#define AWS_COMMON_ERROR_INL

/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#include <aws/common/error.h>

AWS_EXTERN_C_BEGIN

/*
 * Raises `err` to the installed callbacks, and sets the thread's error.
 */
AWS_STATIC_IMPL
int aws_raise_error(int err) {
    /*
     * Certain static analyzers can't see through the out-of-line call to aws_raise_error,
     * and assume that this might return AWS_OP_SUCCESS. We'll put the return inline just
     * to help with their assumptions.
     */

    aws_raise_error_private(err);

    return AWS_OP_ERR;
}

AWS_EXTERN_C_END

#endif /* AWS_COMMON_ERROR_INL */

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
aws-crt-0.4.0 aws-crt-ffi/crt/aws-c-common/include/aws/common/error.inl
aws-crt-0.3.0 aws-crt-ffi/crt/aws-c-common/include/aws/common/error.inl
aws-crt-0.2.1 aws-crt-ffi/crt/aws-c-common/include/aws/common/error.inl
aws-crt-0.2.0 aws-crt-ffi/crt/aws-c-common/include/aws/common/error.inl
aws-crt-0.1.9 aws-crt-ffi/crt/aws-c-common/include/aws/common/error.inl
aws-crt-0.1.8 aws-crt-ffi/crt/aws-c-common/include/aws/common/error.inl
aws-crt-0.1.7 aws-crt-ffi/crt/aws-c-common/include/aws/common/error.inl
aws-crt-0.1.6 aws-crt-ffi/crt/aws-c-common/include/aws/common/error.inl
aws-crt-0.1.5 aws-crt-ffi/crt/aws-c-common/include/aws/common/error.inl
aws-crt-0.1.4 aws-crt-ffi/crt/aws-c-common/include/aws/common/error.inl
aws-crt-0.1.2 aws-crt-ffi/crt/aws-c-common/include/aws/common/error.inl
aws-crt-0.1.1.pre native/crt/aws-c-common/include/aws/common/error.inl
aws-crt-0.1.0.pre native/crt/aws-c-common/include/aws/common/error.inl