---
title: GSS_ROUTINE_ERROR
framework: GSS
role: symbol
role_heading: Macro
platforms: [iOS 5.0+, iPadOS 5.0+, Mac Catalyst 13.0+, macOS 10.14+, visionOS 1.0+]
path: gss/gss_routine_error
---

# GSS_ROUTINE_ERROR

A macro that masks out all but the routine error field from a major status code.

## Declaration

```occ
#define GSS_ROUTINE_ERROR(x)
```

## Discussion

Discussion Apply this macro to a major status code, then compare the result with one of the routine error constants to determine which calling error occurred.

## See Also

### Extraction Macros

- [GSS_ERROR](gss/gss_error.md)
- [GSS_CALLING_ERROR](gss/gss_calling_error.md)
- [GSS_SUPPLEMENTARY_INFO](gss/gss_supplementary_info.md)
