forked from wmcrimson/CKBezierPath
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCKSourceAnnotations.h
More file actions
59 lines (50 loc) · 1.37 KB
/
CKSourceAnnotations.h
File metadata and controls
59 lines (50 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//
// CKSourceAnnotations.h
// CrimsonKit
//
// Created by Waqar Malik on 11/22/10.
// Copyright 2010 Crimson Research, Inc. All rights reserved.
//
#ifndef __CKSOURCEANNOTATIONS_H__
#define __CKSOURCEANNOTATIONS_H__
/* __attribute__((nonnull(1,3))) */
/* Compatibility with non-clang compilers. */
#ifndef __has_feature
#define __has_feature(x) 0
#endif
#ifndef NS_RETURNS_RETAINED
#if __has_feature(attribute_ns_returns_retained)
#define NS_RETURNS_RETAINED __attribute__((ns_returns_retained))
#else
#define NS_RETURNS_RETAINED
#endif
#endif
#ifndef NS_RETURNS_NOT_RETAINED
#if __has_feature(attribute_ns_returns_not_retained)
#define NS_RETURNS_NOT_RETAINED __attribute__((ns_returns_not_retained))
#else
#define NS_RETURNS_NOT_RETAINED
#endif
#endif
#ifndef CF_RETURNS_RETAINED
#if __has_feature(attribute_cf_returns_retained)
#define CF_RETURNS_RETAINED __attribute__((cf_returns_retained))
#else
#define CF_RETURNS_RETAINED
#endif
#endif
#ifndef CF_RETURNS_NOT_RETAINED
#if __has_feature(attribute_cf_returns_not_retained)
#define CF_RETURNS_NOT_RETAINED __attribute__((cf_returns_not_retained))
#else
#define CF_RETURNS_NOT_RETAINED
#endif
#endif
#ifndef CLANG_ANALYZER_NORETURN
#if __has_feature(attribute_analyzer_noreturn)
#define CLANG_ANALYZER_NORETURN __attribute__((analyzer_noreturn))
#else
#define CLANG_ANALYZER_NORETURN
#endif
#endif
#endif /* __CKSOURCEANNOTATIONS_H__ */