NVIDIA DRIVE OS Linux SDK API Reference

5.2.3 Release
For Test and Development only
nverror.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2006 - 2007 NVIDIA Corporation. All Rights Reserved.
3  *
4  * NVIDIA Corporation and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA Corporation is strictly prohibited.
9  */
10 
11 #ifndef INCLUDED_NVERROR_H
12 #define INCLUDED_NVERROR_H
13 #if (defined(__QNX__) && defined(NV_IS_SAFETY) && (NV_IS_SAFETY == 1))
14 #include "nverror_tegra_safety.h"
15 #else
16 
32 typedef enum
33 {
35 #define NVERROR(_name_, _value_, _desc_) NvError_##_name_ = (_value_),
36  /* header included for macro expansion of error codes */
37  #include "nverrval.h"
38 #undef NVERROR
39 
40  // An alias for success
41  NvSuccess = NvError_Success,
42 
44  NvError_Force32 = 0x7FFFFFFF
45 } NvError;
46 
55 #define NV_CHECK_ERROR(expr) \
56  do \
57  { \
58  e = (expr); \
59  if (e != NvSuccess) \
60  return e; \
61  } while (0)
62 
70 #define NV_CHECK_ERROR_CLEANUP(expr) \
71  do \
72  { \
73  e = (expr); \
74  if (e != NvSuccess) \
75  goto fail; \
76  } while (0)
77 
78 
81 #endif
82 #endif // INCLUDED_NVERROR_H
NvError_Force32
@ NvError_Force32
Max value for nv-error.
Definition: nverror.h:44
NvSuccess
@ NvSuccess
Definition: nverror.h:41
NvError
NvError
The NvError enumeration contains ALL return / error codes.
Definition: nverror.h:32