NVIDIA DriveOS Linux NSR SDK API Reference
7.0.3.0 Release
nverror.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: Copyright (c) 2006-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
* SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4
*
5
* NVIDIA Corporation and its licensors retain all intellectual property
6
* and proprietary rights in and to this software, related documentation
7
* and any modifications thereto. Any use, reproduction, disclosure or
8
* distribution of this software and related documentation without an express
9
* license agreement from NVIDIA Corporation is strictly prohibited.
10
*/
11
12
#ifndef INCLUDED_NVERROR_H
13
#define INCLUDED_NVERROR_H
14
#if ((defined(__QNX__) || defined(__linux__))&& defined(NV_IS_SAFETY) && (NV_IS_SAFETY == 1))
15
#include "nverror_tegra_safety.h"
16
#else
17
33
typedef
enum
34
{
36
#define NVERROR(_name_, _value_, _desc_) NvError_##_name_ = (_value_),
37
/* header included for macro expansion of error codes */
38
#include "
nverrval.h
"
39
#undef NVERROR
40
41
// An alias for success
42
NvSuccess
= NvError_Success,
43
45
NvError_Force32
= 0x7FFFFFFF
46
}
NvError
;
47
56
#define NV_CHECK_ERROR(expr) \
57
do \
58
{ \
59
e = (expr); \
60
if (e != NvSuccess) \
61
return e; \
62
} while (0)
63
71
#define NV_CHECK_ERROR_CLEANUP(expr) \
72
do \
73
{ \
74
e = (expr); \
75
if (e != NvSuccess) \
76
goto fail; \
77
} while (0)
78
79
82
#endif
83
#endif // INCLUDED_NVERROR_H
NvError
NvError
The NvError enumeration contains ALL return / error codes.
Definition:
nverror.h:33
NvError_Force32
@ NvError_Force32
Max value for nv-error.
Definition:
nverror.h:45
NvSuccess
@ NvSuccess
Definition:
nverror.h:42
nverrval.h
Privacy Policy
|
Manage My Privacy
|
Do Not Sell or Share My Data
|
Terms of Service
|
Accessibility
|
Corporate Policies
|
Product Security
|
Contact
© 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
Subject to Change | For test and development only.
Thu May 8 2025 00:05:07 | PR-10721-6.0