Document of c-modernization-kit (calc) 1.0.0
Loading...
Searching...
No Matches
libcalc.h
Go to the documentation of this file.
1
16
17#ifndef LIBCALC_H
18#define LIBCALC_H
19
20#include <libcalc_const.h>
21
22#ifdef DOXYGEN
23
37#define CALC_EXPORT
38
46#define CALC_API
47
48#else /* !DOXYGEN */
49
50#ifndef _WIN32
51 #define CALC_EXPORT
52 #define CALC_API
53#else /* _WIN32 */
54 #ifndef __INTELLISENSE__
55 #ifndef CALC_STATIC
56 #ifdef CALC_EXPORTS
57 #define CALC_EXPORT __declspec(dllexport)
58 #else /* !CALC_EXPORTS */
59 #define CALC_EXPORT __declspec(dllimport)
60 #endif /* CALC_EXPORTS */
61 #else /* CALC_STATIC */
62 #define CALC_EXPORT
63 #endif /* CALC_STATIC */
64 #else /* __INTELLISENSE__ */
65 #define CALC_EXPORT
66 #endif /* __INTELLISENSE__ */
67 #ifndef CALC_API
68 #define CALC_API __stdcall
69 #endif /* CALC_API */
70#endif /* _WIN32 */
71
72#endif /* DOXYGEN */
73
74#ifdef __cplusplus
75extern "C"
76{
77#endif /* __cplusplus */
78
112 CALC_EXPORT extern int CALC_API calcHandler(const int kind, const int a, const int b, int *result);
113
114#ifdef __cplusplus
115}
116#endif /* __cplusplus */
117
118#endif /* LIBCALC_H */
CALC_EXPORT int CALC_API calcHandler(const int kind, const int a, const int b, int *result)
指定された演算種別に基づいて計算を実行します。
Definition calcHandler.c:21
#define CALC_API
呼び出し規約マクロ。
Definition libcalc.h:46
#define CALC_EXPORT
DLL エクスポート/インポート制御マクロ。
Definition libcalc.h:37
計算ライブラリの定数ファイル。