//
//  Constants.h
//  MobileBrowser
//
//  Created by Jaanus Siim on 3/29/11.
//  Copyright 2011 Mobi Solutions OU. All rights reserved.
//

#if DEBUG
#define MSLog(s, ...) NSLog( @"<%p %@:(%d)> %@", self, [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )
#else
#define MSLog(s, ...) //
#endif

#define kSettingShowMap          @"ShowMap"
#define kSettingGPS              @"GPS"
#define kSettingFirstUse         @"FirstUse"

#define HEXCOLOR(c) [UIColor colorWithRed:((c>>24)&0xFF)/255.0 \
                                          green:((c>>16)&0xFF)/255.0 \
                                          blue:((c>>8)&0xFF)/255.0 \
                                          alpha:((c)&0xFF)/255.0]

