Document of c-modernization-kit (override-sample) 1.0.0
Loading...
Searching...
No Matches
libbase.h
Go to the documentation of this file.
1
15
16#ifndef LIBBASE_H
17#define LIBBASE_H
18
19#include <stddef.h>
20#include <funcman.h>
21
22#ifdef DOXYGEN
23
37#define BASE_EXPORT
38
46#define BASE_API
47
48#else /* !DOXYGEN */
49
50#ifndef _WIN32
51 #define BASE_EXPORT
52 #define BASE_API
53#else /* _WIN32 */
54 #ifndef __INTELLISENSE__
55 #ifndef BASE_STATIC
56 #ifdef BASE_EXPORTS
57 #define BASE_EXPORT __declspec(dllexport)
58 #else /* !BASE_EXPORTS */
59 #define BASE_EXPORT __declspec(dllimport)
60 #endif /* BASE_EXPORTS */
61 #else /* BASE_STATIC */
62 #define BASE_EXPORT
63 #endif /* BASE_STATIC */
64 #else /* __INTELLISENSE__ */
65 #define BASE_EXPORT
66 #endif /* __INTELLISENSE__ */
67 #ifndef BASE_API
68 #define BASE_API __stdcall
69 #endif /* BASE_API */
70#endif /* _WIN32 */
71
72#endif /* DOXYGEN */
73
74#ifdef __cplusplus
75extern "C"
76{
77#endif /* __cplusplus */
78
90 BASE_EXPORT extern int BASE_API sample_func(const int a, const int b, int *result);
91
107 BASE_EXPORT extern void BASE_API console_output(const char *format, ...);
108
116
117#ifdef __cplusplus
118}
119#endif /* __cplusplus */
120
121#endif /* LIBBASE_H */
BASE_EXPORT void BASE_API console_output(const char *format,...)
printf と同じ書式でコンソールに出力します。
#define BASE_API
呼び出し規約マクロ。
Definition libbase.h:46
BASE_EXPORT int BASE_API sample_func(const int a, const int b, int *result)
計算処理を行います。
Definition sample_func.c:20
#define BASE_EXPORT
DLL エクスポート/インポート制御マクロ。
Definition libbase.h:37
BASE_EXPORT int BASE_API funcman_info_libbase(void)
libbase が管理する funcman_object ポインタ配列の内容を標準出力に表示します。