NimbusKit
1.2.1 -
Fork Nimbus on Github
-
Visit the Nimbus Wiki
The iOS framework that grows only as fast as its documentation
NIPreprocessorMacros.h
1
//
2
// Copyright 2011-2014 NimbusKit
3
//
4
// Forked from Three20 June 10, 2011 - Copyright 2009-2011 Facebook
5
//
6
// Licensed under the Apache License, Version 2.0 (the "License");
7
// you may not use this file except in compliance with the License.
8
// You may obtain a copy of the License at
9
//
10
// http://www.apache.org/licenses/LICENSE-2.0
11
//
12
// Unless required by applicable law or agreed to in writing, software
13
// distributed under the License is distributed on an "AS IS" BASIS,
14
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
// See the License for the specific language governing permissions and
16
// limitations under the License.
17
//
18
19
#import <Foundation/Foundation.h>
20
21
22
#pragma mark - Preprocessor Macros
23
105
#define __NI_DEPRECATED_METHOD __attribute__((deprecated))
106
115
#define NI_FIX_CATEGORY_BUG(name) @interface NI_FIX_CATEGORY_BUG_##name : NSObject @end \
116
@implementation NI_FIX_CATEGORY_BUG_##name @end
117
121
#define RGBCOLOR(r,g,b) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1]
122
126
#define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)]
127
// End of Preprocessor Macros //////////////////////////////////////////////////////////////