NVIDIA DriveOS Linux SDK API Reference
7.2.5.0 Early Access Release
nverror.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: Copyright (c) 2006-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
* SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4
*
5
* NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6
* property and proprietary rights in and to this material, related
7
* documentation and any modifications thereto. Any use, reproduction,
8
* disclosure or distribution of this material and related documentation
9
* without an express license agreement from NVIDIA CORPORATION or
10
* its affiliates is strictly prohibited.
11
*/
12
13
#ifndef INCLUDED_NVERROR_H
14
#define INCLUDED_NVERROR_H
15
16
#include "
nverrval.h
"
17
18
#if defined(__cplusplus)
19
extern
"C"
20
{
21
#endif
22
23
#ifndef DEFINED_NVERROR_TYPE_N_MACRO
24
#define DEFINED_NVERROR_TYPE_N_MACRO
25
43
typedef
enum
44
{
45
#define NVERRORCODE(_name, _value, _desc) NvError_##_name = (_value),
46
NVERROR_LIST
(
NVERRORCODE
)
47
48
49
NvSuccess
= NvError_Success,
50
52
NvError_Force32
= 0x7FFFFFFF
53
}
NvError
;
54
63
#define NV_CHECK_ERROR(expr) \
64
do \
65
{ \
66
e = (expr); \
67
if (e != NvSuccess) \
68
return e; \
69
} while (0)
70
78
#define NV_CHECK_ERROR_CLEANUP(expr) \
79
do \
80
{ \
81
e = (expr); \
82
if (e != NvSuccess) \
83
goto fail; \
84
} while (0)
85
86
#endif // DEFINED_NVERROR_TYPE_N_MACRO
87
89
#if defined(__cplusplus)
90
}
91
#endif
92
#endif // INCLUDED_NVERROR_H
NvError
NvError
The NvError enumeration contains ALL return / error codes.
Definition:
nverror.h:43
NvError_Force32
@ NvError_Force32
Max value for nv-error code.
Definition:
nverror.h:52
NVERROR_LIST
#define NVERROR_LIST(_m)
This macro contains the list of NvError error codes.
Definition:
nverrval.h:43
NVERRORCODE
#define NVERRORCODE(_name, _value, _desc)
Definition:
nverror.h:45
NvSuccess
@ NvSuccess
An alias for success.
Definition:
nverror.h:49
nverrval.h
Privacy Policy
|
Manage My Privacy
|
Do Not Sell or Share My Data
|
Terms of Service
|
Accessibility
|
Corporate Policies
|
Product Security
|
Contact
© 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
Subject to Change | For test and development only.
Thu Jul 2 2026 13:40:41 | PR-10720-7.0