-
Notifications
You must be signed in to change notification settings - Fork 725
Expand file tree
/
Copy pathCommon.h
More file actions
24 lines (19 loc) · 700 Bytes
/
Common.h
File metadata and controls
24 lines (19 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
* Common.h
* MachOView
*
* Created by Peter Saghelyi on 10/09/2011.
*
*/
//#define MV_NO_MULTITHREAD
//#define MV_NO_ARCHIVER
//#define MV_STATISTICS
extern NSCondition * pipeCondition;
extern int32_t numIOThread;
extern int64_t nrow_total; // number of rows (loaded and empty)
extern int64_t nrow_loaded; // number of loaded rows
#define NSSTRING(C_STR) [NSString stringWithCString: (char *)(C_STR) encoding: [NSString defaultCStringEncoding]]
#define CSTRING(NS_STR) [(NS_STR) cStringUsingEncoding: [NSString defaultCStringEncoding]]
#define N_ELEMENTS(ARR) (sizeof(ARR)/sizeof(*(ARR)))
#define FIRST_ELEM(ARR) (&(ARR)[0])
#define LAST_ELEM(ARR) (&(ARR)[N_ELEMENTS(ARR)-1])