<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.14.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GSS",
  "identifier" : "/documentation/GSS/GSS_ERROR",
  "metadataVersion" : "0.1.0",
  "role" : "Macro",
  "symbol" : {
    "kind" : "Macro",
    "modules" : [
      "GSS"
    ],
    "preciseIdentifier" : "c:@macro@GSS_ERROR"
  },
  "title" : "GSS_ERROR"
}
-->

# GSS_ERROR

A macro that masks the supplementary info out of a major status code, leaving both calling and routine error fields.

```
#define GSS_ERROR(x)
```

## Discussion

When you apply this macro to a major status code, a non-zero result indicates that an error of some kind occurred.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)