Nxna2
 All Classes Namespaces Functions Enumerations Enumerator Pages
NxnaCommon.h
1 #ifndef NXNA_COMMON_H
2 #define NXNA_COMMON_H
3 
4 #ifndef NDEBUG
5 #include <cassert>
6 #endif
7 
8 namespace Nxna
9 {
10  typedef unsigned char nxna_byte;
11 
12  enum class NxnaResult
13  {
15  Success = 0,
16 
18  NotSupported = -10000,
19 
21  UnknownError = -1
22  };
23 
25  {
26  const char* Filename;
27  int LineNumber;
28 
29  int APIErrorCode;
30  char ErrorDescription[128];
31  };
32 }
33 
34 #ifndef NXNA_DISABLE_VALIDATION
35 #define NXNA_VALIDATION_ASSERT(c, t) assert((c) && t)
36 #else
37 #define NXNA_VALIDATION_ASSERT(c, t)
38 #endif
39 
40 #endif // NXNA_COMMON_H
Success, no errors.
Definition: NxnaCommon.h:24
NxnaResult
Definition: NxnaCommon.h:12
The requested operation is not supported on the current platform or hardware.