<!--
{
  "documentType" : "article",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CoreFoundation-macros",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Core Foundation Macros"
}
-->

# Core Foundation Macros

## Topics

### Macros

[`#define CF_ASSUME_NONNULL_BEGIN`](/documentation/CoreFoundation/CF_ASSUME_NONNULL_BEGIN)

[`#define CF_ASSUME_NONNULL_END`](/documentation/CoreFoundation/CF_ASSUME_NONNULL_END)

[`#define CF_AUTOMATED_REFCOUNT_UNAVAILABLE`](/documentation/CoreFoundation/CF_AUTOMATED_REFCOUNT_UNAVAILABLE)

[`#define CF_AVAILABLE_IOS(_ios)`](/documentation/CoreFoundation/CF_AVAILABLE_IOS)

[`#define CF_AVAILABLE_IPHONE(_ios)`](/documentation/CoreFoundation/CF_AVAILABLE_IPHONE)

[`#define CF_AVAILABLE_MAC(_mac)`](/documentation/CoreFoundation/CF_AVAILABLE_MAC)

[`#define CF_AVAILABLE(_mac, _ios)`](/documentation/CoreFoundation/CF_AVAILABLE)

[`#define CF_BOXABLE`](/documentation/CoreFoundation/CF_BOXABLE)

[`#define CF_BRIDGED_MUTABLE_TYPE(T)`](/documentation/CoreFoundation/CF_BRIDGED_MUTABLE_TYPE)

[`#define CF_BRIDGED_TYPE(T)`](/documentation/CoreFoundation/CF_BRIDGED_TYPE)

[`#define CF_CALENDAR_DEPRECATED(A, B, C, D, ...)`](/documentation/CoreFoundation/CF_CALENDAR_DEPRECATED)

[`#define CF_CALENDAR_ENUM_DEPRECATED(A, B, C, D, ...)`](/documentation/CoreFoundation/CF_CALENDAR_ENUM_DEPRECATED)

[`#define CF_CLOSED_ENUM(_type, _name)`](/documentation/CoreFoundation/CF_CLOSED_ENUM)

[`#define CF_CONSUMED`](/documentation/CoreFoundation/CF_CONSUMED)

[`#define CF_DEFINES_CG_TYPES`](/documentation/CoreFoundation/CF_DEFINES_CG_TYPES)

[`#define CF_DEFINES_CGAFFINETRANSFORMCOMPONENTS`](/documentation/CoreFoundation/CF_DEFINES_CGAFFINETRANSFORMCOMPONENTS)

[`#define CF_DEPRECATED_IOS(_iosIntro, _iosDep, ...)`](/documentation/CoreFoundation/CF_DEPRECATED_IOS)

[`#define CF_DEPRECATED_IPHONE(_iosIntro, _iosDep)`](/documentation/CoreFoundation/CF_DEPRECATED_IPHONE)

[`#define CF_DEPRECATED_MAC(_macIntro, _macDep, ...)`](/documentation/CoreFoundation/CF_DEPRECATED_MAC)

[`#define CF_DEPRECATED(_macIntro, _macDep, _iosIntro, _iosDep, ...)`](/documentation/CoreFoundation/CF_DEPRECATED)

[`#define CF_ENUM_AVAILABLE_IOS(_ios)`](/documentation/CoreFoundation/CF_ENUM_AVAILABLE_IOS)

[`#define CF_ENUM_AVAILABLE_MAC(_mac)`](/documentation/CoreFoundation/CF_ENUM_AVAILABLE_MAC)

[`#define CF_ENUM_AVAILABLE(_mac, _ios)`](/documentation/CoreFoundation/CF_ENUM_AVAILABLE)

[`#define CF_ENUM_DEPRECATED_IOS(_iosIntro, _iosDep, ...)`](/documentation/CoreFoundation/CF_ENUM_DEPRECATED_IOS)

[`#define CF_ENUM_DEPRECATED_MAC(_macIntro, _macDep, ...)`](/documentation/CoreFoundation/CF_ENUM_DEPRECATED_MAC)

[`#define CF_ENUM_DEPRECATED(_macIntro, _macDep, _iosIntro, _iosDep, ...)`](/documentation/CoreFoundation/CF_ENUM_DEPRECATED)

[`#define CF_ENUM(...)`](/documentation/CoreFoundation/CF_ENUM)

[`#define CF_ERROR_ENUM(...)`](/documentation/CoreFoundation/CF_ERROR_ENUM)

[`#define CF_EXPORT`](/documentation/CoreFoundation/CF_EXPORT)

[`#define CF_EXTENSIBLE_STRING_ENUM`](/documentation/CoreFoundation/CF_EXTENSIBLE_STRING_ENUM)

[`#define CF_EXTENSION_UNAVAILABLE_IOS(_msg)`](/documentation/CoreFoundation/CF_EXTENSION_UNAVAILABLE_IOS)

[`#define CF_EXTENSION_UNAVAILABLE_MAC(_msg)`](/documentation/CoreFoundation/CF_EXTENSION_UNAVAILABLE_MAC)

[`#define CF_EXTENSION_UNAVAILABLE(_msg)`](/documentation/CoreFoundation/CF_EXTENSION_UNAVAILABLE)

[`#define CF_EXTERN_C_BEGIN`](/documentation/CoreFoundation/CF_EXTERN_C_BEGIN)

[`#define CF_EXTERN_C_END`](/documentation/CoreFoundation/CF_EXTERN_C_END)

[`#define CF_FALLTHROUGH`](/documentation/CoreFoundation/CF_FALLTHROUGH)

[`#define CF_FORMAT_ARGUMENT(A)`](/documentation/CoreFoundation/CF_FORMAT_ARGUMENT)

[`#define CF_FORMAT_FUNCTION(F, A)`](/documentation/CoreFoundation/CF_FORMAT_FUNCTION)

[`var CF_HAS_TYPED_ALLOCATOR: Int32`](/documentation/CoreFoundation/CF_HAS_TYPED_ALLOCATOR)

[`#define CF_IMPLICIT_BRIDGING_DISABLED`](/documentation/CoreFoundation/CF_IMPLICIT_BRIDGING_DISABLED)

[`#define CF_IMPLICIT_BRIDGING_ENABLED`](/documentation/CoreFoundation/CF_IMPLICIT_BRIDGING_ENABLED)

[`#define CF_INLINE`](/documentation/CoreFoundation/CF_INLINE)

[`#define CF_NO_TAIL_CALL`](/documentation/CoreFoundation/CF_NO_TAIL_CALL)

[`#define CF_NOESCAPE`](/documentation/CoreFoundation/CF_NOESCAPE)

[`#define CF_OPTIONS(_type, _name)`](/documentation/CoreFoundation/CF_OPTIONS)

[`#define CF_REFINED_FOR_SWIFT`](/documentation/CoreFoundation/CF_REFINED_FOR_SWIFT)

[`#define CF_RELATED_TYPE(T, C, I)`](/documentation/CoreFoundation/CF_RELATED_TYPE)

[`#define CF_RELEASES_ARGUMENT`](/documentation/CoreFoundation/CF_RELEASES_ARGUMENT)

[`#define CF_RETURNS_NOT_RETAINED`](/documentation/CoreFoundation/CF_RETURNS_NOT_RETAINED)

[`#define CF_RETURNS_RETAINED`](/documentation/CoreFoundation/CF_RETURNS_RETAINED)

[`#define CF_STRING_ENUM`](/documentation/CoreFoundation/CF_STRING_ENUM)

[`#define CF_SWIFT_BRIDGED_TYPEDEF`](/documentation/CoreFoundation/CF_SWIFT_BRIDGED_TYPEDEF)

[`#define CF_SWIFT_NAME(_name)`](/documentation/CoreFoundation/CF_SWIFT_NAME)

[`#define CF_SWIFT_UNAVAILABLE_FROM_ASYNC(msg)`](/documentation/CoreFoundation/CF_SWIFT_UNAVAILABLE_FROM_ASYNC)

[`#define CF_SWIFT_UNAVAILABLE(_msg)`](/documentation/CoreFoundation/CF_SWIFT_UNAVAILABLE)

[`#define CF_TYPED_ENUM`](/documentation/CoreFoundation/CF_TYPED_ENUM)

[`#define CF_TYPED_EXTENSIBLE_ENUM`](/documentation/CoreFoundation/CF_TYPED_EXTENSIBLE_ENUM)

[`#define CF_USE_OSBYTEORDER_H`](/documentation/CoreFoundation/CF_USE_OSBYTEORDER_H)

[`#define CF_WARN_UNUSED_RESULT`](/documentation/CoreFoundation/CF_WARN_UNUSED_RESULT)

[`var CGFLOAT_DEFINED: Int32`](/documentation/CoreFoundation/CGFLOAT_DEFINED)

[`#define CGFLOAT_TYPE`](/documentation/CoreFoundation/CGFLOAT_TYPE)

[`#define CGVECTOR_DEFINED`](/documentation/CoreFoundation/CGVECTOR_DEFINED)

[`var COREFOUNDATION_CFPLUGINCOM_SEPARATE: Int32`](/documentation/CoreFoundation/COREFOUNDATION_CFPLUGINCOM_SEPARATE)

[`#define E_ABORT`](/documentation/CoreFoundation/E_ABORT)

[`#define E_ACCESSDENIED`](/documentation/CoreFoundation/E_ACCESSDENIED)

[`#define E_FAIL`](/documentation/CoreFoundation/E_FAIL)

[`#define E_HANDLE`](/documentation/CoreFoundation/E_HANDLE)

[`#define E_INVALIDARG`](/documentation/CoreFoundation/E_INVALIDARG)

[`#define E_NOINTERFACE`](/documentation/CoreFoundation/E_NOINTERFACE)

[`#define E_NOTIMPL`](/documentation/CoreFoundation/E_NOTIMPL)

[`#define E_OUTOFMEMORY`](/documentation/CoreFoundation/E_OUTOFMEMORY)

[`#define E_POINTER`](/documentation/CoreFoundation/E_POINTER)

[`#define E_UNEXPECTED`](/documentation/CoreFoundation/E_UNEXPECTED)

[`#define FAILED(Status)`](/documentation/CoreFoundation/FAILED)

[`#define FALSE`](/documentation/CoreFoundation/FALSE)

[`#define HRESULT_CODE(hr)`](/documentation/CoreFoundation/HRESULT_CODE)

[`#define HRESULT_FACILITY(hr)`](/documentation/CoreFoundation/HRESULT_FACILITY)

[`#define HRESULT_SEVERITY(hr)`](/documentation/CoreFoundation/HRESULT_SEVERITY)

[`#define IS_ERROR(Status)`](/documentation/CoreFoundation/IS_ERROR)

[`#define IUNKNOWN_C_GUTS`](/documentation/CoreFoundation/IUNKNOWN_C_GUTS)

[`#define IUnknownUUID`](/documentation/CoreFoundation/IUnknownUUID)

[`#define kCFFileSecurityRemoveACL`](/documentation/CoreFoundation/kCFFileSecurityRemoveACL)

[`#define MAKE_HRESULT(sev, fac, code)`](/documentation/CoreFoundation/MAKE_HRESULT)

[`#define S_FALSE`](/documentation/CoreFoundation/S_FALSE)

[`#define S_OK`](/documentation/CoreFoundation/S_OK)

[`#define SEVERITY_ERROR`](/documentation/CoreFoundation/SEVERITY_ERROR)

[`#define SEVERITY_SUCCESS`](/documentation/CoreFoundation/SEVERITY_SUCCESS)

[`#define STDMETHODCALLTYPE`](/documentation/CoreFoundation/STDMETHODCALLTYPE)

[`#define SUCCEEDED(Status)`](/documentation/CoreFoundation/SUCCEEDED)

[`#define TRUE`](/documentation/CoreFoundation/TRUE)



---

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)