source: libcf/trunk/include/cf_base.h@ 26

Last change on this file since 26 was 26, checked in by cheese, 11 years ago

#1 documentation with doxygen

File size: 1.1 KB
RevLine 
[4]1/**
[26]2 * @file cf_base.h
3 * @author myusgun <myusgun@gmail.com>
4 * @version 0.1
[4]5 */
6#ifndef __CF_BASE_H__
7#define __CF_BASE_H__
8
[26]9/** boolean 타입 */
[4]10typedef enum {
[26]11 CF_FALSE = 0, /**< 거짓 */
12 CF_TRUE = 1 /**< 참 */
13} E_CF_BOOL,
14/**
15 * boolean 타입
16 * @see E_CF_BOOL
17 */
18 CF_BOOL;
[4]19
[26]20/** 성공 시, 반환 값 */
[4]21#define CF_OK 0
[26]22/** 오류 코드 */
[4]23#define CF_ERROR -1
[6]24
[26]25/** 파일 이름 및 경로 길이 */
[10]26#define NAME_LENGTH 128
27
[26]28/** 오류 코드 베이스 넘버 */
[4]29#define CF_ERROR_BASE CF_ERROR * 1000
[26]30/** @see cf_file.h */
[6]31#define CF_ERROR_FILE CF_ERROR_BASE * 2
[26]32/** @see cf_socket.h */
[6]33#define CF_ERROR_SOCKET CF_ERROR_BASE * 3
[26]34/** @see cf_thread.h */
[6]35#define CF_ERROR_THREAD CF_ERROR_BASE * 4
[26]36/** @see cf_thread.h */
[6]37#define CF_ERROR_MUTEX CF_ERROR_BASE * 5
[26]38/** @see cf_debug.h */
[6]39#define CF_ERROR_DEBUG CF_ERROR_BASE * 6
[26]40/** @see cf_log.h */
[10]41#define CF_ERROR_LOG CF_ERROR_BASE * 7
[6]42
[26]43/** Windows 에서의 함수 EXPORT 구문 정의 */
[4]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.