Ion C
C library for Ion
Loading...
Searching...
No Matches
ion_errors.h
Go to the documentation of this file.
1/*
2 * Copyright 2009-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at:
7 *
8 * http://aws.amazon.com/apache2.0/
9 *
10 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
12 * language governing permissions and limitations under the License.
13 */
14
17#ifndef ION_ERRORS_
18#define ION_ERRORS_
19
20#include "ion_platform_config.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30 IERR_NOT_IMPL = -1,
31
32 #define ERROR_CODE(name, val) name = val,
33 #include "ion_error_codes.h"
34
35 IERR_MAX_ERROR_CODE
36};
37// included in ion_error.h: #undef ERROR_CODE
38
39typedef enum ion_error_code iERR;
40
44ION_API_EXPORT const char *ion_error_to_str(iERR err);
45
46
47#ifdef __cplusplus
48}
49#endif
50
51#endif // ION_ERRORS_INCLUDED
ion_error_code
Definition ion_errors.h:29
ION_API_EXPORT const char * ion_error_to_str(iERR err)