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

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

#1 fix makefile for multi-platform

File size: 1.2 KB
Line 
1/**
2 * @file cf_base.h
3 * @author myusgun <myusgun@gmail.com>
4 * @version 0.1
5 *
6 * @remarks 기본 정의
7 *
8 * @example test.c
9 *
10 * @mainpage
11
12<h2 style="line-height: 10%;">Welcome to documentation page of libCF</h2>
13&nbsp; - CFLibrary (cheese's foundation library)
14
15&nbsp; This documentation (suggested by nvdark) includes only manual of APIs.
16
17&nbsp; Please visit <a href="/trac/libcf">Trac</a> of libcf.
18
19<h3>supported functions</h3>
20<ol>
21 <li> File I/O </li>
22 <li> Socket </li>
23 <li> Logging (advisor: vfire) </li>
24 <li> Utilities for Debug </li>
25 <li> Thread & Mutex </li>
26 <li> ..more needs ? </li>
27</ol>
28
29사츠키 하앜
30
31 */
32#ifndef __CF_BASE_H__
33#define __CF_BASE_H__
34
35/** boolean 타입 */
36typedef enum {
37 CF_FALSE = 0, /**< 거짓 */
38 CF_TRUE = 1 /**< 참 */
39} E_CF_BOOL,
40/**
41 * boolean 타입
42 * @see E_CF_BOOL
43 */
44 CF_BOOL;
45
46/** 성공 시, 반환 값 */
47#define CF_OK 0
48/** 오류 코드 */
49#define CF_ERROR -1
50
51/** 파일 이름 및 경로 길이 */
52#define NAME_LENGTH 128
53
54/** Windows 에서의 함수 EXPORT 구문 정의 */
55#if defined(_WIN32) || defined(_WIN64)
56# define CF_EXPORT __declspec(dllexport)
57#else
58# define CF_EXPORT
59#endif
60
61#endif // #ifndef __CF_BASE_H__
Note: See TracBrowser for help on using the repository browser.