Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Macros.h « Maps « iphone - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9acaf19345e2c80e1280f02120b8120b03058f41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//
//  Macros.h
//  Maps
//
//  Created by v.mikhaylenko on 07.04.15.
//  Copyright (c) 2015 MapsWithMe. All rights reserved.
//

#define IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)

#define L(str) NSLocalizedString(str, nil)

#define INTEGRAL(f) ([UIScreen mainScreen].scale == 1 ? floor(f) : f)
#define PIXEL 1.0 / [UIScreen mainScreen].scale