Line | |
---|
1 | /**
|
---|
2 | * @file cf_base.h
|
---|
3 | * @author myusgun <myusgun@gmail.com>
|
---|
4 | * @version 0.1
|
---|
5 | */
|
---|
6 | #ifndef __CF_BASE_H__
|
---|
7 | #define __CF_BASE_H__
|
---|
8 |
|
---|
9 | /** boolean 타입 */
|
---|
10 | typedef enum {
|
---|
11 | CF_FALSE = 0, /**< 거짓 */
|
---|
12 | CF_TRUE = 1 /**< 참 */
|
---|
13 | } E_CF_BOOL,
|
---|
14 | /**
|
---|
15 | * boolean 타입
|
---|
16 | * @see E_CF_BOOL
|
---|
17 | */
|
---|
18 | CF_BOOL;
|
---|
19 |
|
---|
20 | /** 성공 시, 반환 값 */
|
---|
21 | #define CF_OK 0
|
---|
22 | /** 오류 코드 */
|
---|
23 | #define CF_ERROR -1
|
---|
24 |
|
---|
25 | /** 파일 이름 및 경로 길이 */
|
---|
26 | #define NAME_LENGTH 128
|
---|
27 |
|
---|
28 | /** 오류 코드 베이스 넘버 */
|
---|
29 | #define CF_ERROR_BASE CF_ERROR * 1000
|
---|
30 | /** @see cf_file.h */
|
---|
31 | #define CF_ERROR_FILE CF_ERROR_BASE * 2
|
---|
32 | /** @see cf_socket.h */
|
---|
33 | #define CF_ERROR_SOCKET CF_ERROR_BASE * 3
|
---|
34 | /** @see cf_thread.h */
|
---|
35 | #define CF_ERROR_THREAD CF_ERROR_BASE * 4
|
---|
36 | /** @see cf_thread.h */
|
---|
37 | #define CF_ERROR_MUTEX CF_ERROR_BASE * 5
|
---|
38 | /** @see cf_debug.h */
|
---|
39 | #define CF_ERROR_DEBUG CF_ERROR_BASE * 6
|
---|
40 | /** @see cf_log.h */
|
---|
41 | #define CF_ERROR_LOG CF_ERROR_BASE * 7
|
---|
42 |
|
---|
43 | /** Windows 에서의 함수 EXPORT 구문 정의 */
|
---|
44 | #ifdef _WIN32
|
---|
45 | # define CF_EXPORT __declspec(dllexport)
|
---|
46 | #else // #ifdef _WIN32
|
---|
47 | # define CF_EXPORT
|
---|
48 | #endif // #ifdef _WIN32
|
---|
49 |
|
---|
50 | #endif // #ifndef __CF_BASE_H__
|
---|
Note:
See
TracBrowser
for help on using the repository browser.