Last change
on this file since 6 was 6, checked in by cheese, 11 years ago |
#1 add debug util and arrange some code
|
File size:
605 bytes
|
Line | |
---|
1 | /**
|
---|
2 | * cf_base.h
|
---|
3 | */
|
---|
4 | #ifndef __CF_BASE_H__
|
---|
5 | #define __CF_BASE_H__
|
---|
6 |
|
---|
7 | typedef enum {
|
---|
8 | CF_TRUE = 0,
|
---|
9 | CF_FALSE = 1
|
---|
10 | } E_CF_BOOL, CF_BOOL;
|
---|
11 |
|
---|
12 | #define CF_OK 0
|
---|
13 | #define CF_ERROR -1
|
---|
14 |
|
---|
15 | #define CF_ERROR_BASE CF_ERROR * 1000
|
---|
16 |
|
---|
17 | #define CF_ERROR_FILE CF_ERROR_BASE * 2
|
---|
18 | #define CF_ERROR_SOCKET CF_ERROR_BASE * 3
|
---|
19 | #define CF_ERROR_THREAD CF_ERROR_BASE * 4
|
---|
20 | #define CF_ERROR_MUTEX CF_ERROR_BASE * 5
|
---|
21 | #define CF_ERROR_DEBUG CF_ERROR_BASE * 6
|
---|
22 |
|
---|
23 | #ifdef _WIN32
|
---|
24 | # define CF_EXPORT __declspec(dllexport)
|
---|
25 | #else // #ifdef _WIN32
|
---|
26 | # define CF_EXPORT
|
---|
27 | #endif // #ifdef _WIN32
|
---|
28 |
|
---|
29 | #endif // #ifndef __CF_BASE_H__
|
---|
Note:
See
TracBrowser
for help on using the repository browser.