//
//  const.h
//  AntsContract
//
//  Created by Ray on 12/20/16.
//  Copyright © 2016 United Software Applications, Inc. All rights reserved.
//

#ifndef const_h
#define const_h


#define CONTROL_BASE 19871
#define CHECK_BASE 29871
#define DEBUGLOG 1
#ifdef DEBUGLOG
#ifdef DEBUG
//     #define DebugLog( s, ... ) fprintf(stderr,"%s\n",[[NSString stringWithFormat:s, ##__VA_ARGS__] UTF8String])//
#define DebugLog( s, ... ) fprintf(stderr, "<%p %s:(%d)> %s \n", self, [[[NSString stringWithUTF8String:__FILE__] lastPathComponent]UTF8String], __LINE__, [[NSString stringWithFormat:(s), ##__VA_ARGS__]UTF8String] )
#else
#define DebugLog( s, ... )
#endif
#else
#define DebugLog( s, ... )
#endif


#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
//#define UIColorFromRGBA(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF000000) >> 32))/255.0 green:((float)((rgbValue & 0xFF0000) >> 16))/255.0 blue:((float)((rgbValue & 0xFF00) >> 8))/255.0 alpha:((float)(rgbValue & 0xFF))/255.0]





#define TV_BG 0xccffff

#define CK_BG 0xccffff
#define CK_MK 0x000000

#define SIG_BG 0xFFFFCC

#define BT_BG 0xccffff

#define JSON_TIMEOUT 30


#endif /* const_h */
