|
Document of c-modernization-kit (override-sample) 1.0.0
|
ベースライブラリ (動的リンク用) のヘッダーファイル。 More...
#include <stddef.h>#include <funcman.h>Go to the source code of this file.
Macros | |
| #define | BASE_EXPORT |
| DLL エクスポート/インポート制御マクロ。 | |
| #define | BASE_API |
| 呼び出し規約マクロ。 | |
Functions | |
| BASE_EXPORT int BASE_API | sample_func (const int a, const int b, int *result) |
| 計算処理を行います。 | |
| BASE_EXPORT void BASE_API | console_output (const char *format,...) |
| printf と同じ書式でコンソールに出力します。 | |
| BASE_EXPORT int BASE_API | funcman_info_libbase (void) |
| libbase が管理する funcman_object ポインタ配列の内容を標準出力に表示します。 | |
ベースライブラリ (動的リンク用) のヘッダーファイル。
このライブラリは動的ライブラリのオーバーライド機能を示すサンプルです。
Definition in file libbase.h.
| #define BASE_EXPORT |
DLL エクスポート/インポート制御マクロ。
ビルド条件に応じて以下の値を取ります。
| 条件 | 値 |
|---|---|
| Linux (非 Windows) | (空) |
| Windows / __INTELLISENSE__ 定義時 | (空) |
| Windows / BASE_STATIC 定義時 (静的リンク) | (空) |
| Windows / BASE_EXPORTS 定義時 (DLL ビルド) | __declspec(dllexport) |
| Windows / BASE_EXPORTS 未定義時 (DLL 利用側) | __declspec(dllimport) |
| #define BASE_API |
呼び出し規約マクロ。
Windows 環境では __stdcall 呼び出し規約を指定します。
Linux (非 Windows) 環境では空に展開されます。
既に定義済みの場合は再定義されません。
Definition at line 46 of file libbase.h.
Referenced by console_output(), and sample_func().
|
extern |
計算処理を行います。
| [in] | a | 第一オペランド。 |
| [in] | b | 第二オペランド。 |
| [out] | result | 計算結果を格納するポインタ。 |
Definition at line 20 of file sample_func.c.
References BASE_API, console_output(), and pfo_sample_func.
Referenced by main().
|
extern |
printf と同じ書式でコンソールに出力します。
| [in] | format | printf 互換の書式文字列。 |
| [in] | ... | 書式文字列に対応する引数。 |
この関数は printf のラッパーです。
動的ライブラリ内から呼び出し元プロセスのコンソールに出力します。
Definition at line 21 of file console_output.c.
References BASE_API.
Referenced by main(), override_func(), and sample_func().
|
extern |
libbase が管理する funcman_object ポインタ配列の内容を標準出力に表示します。
Definition at line 47 of file funcman_libbase.c.
References fobj_array_libbase, fobj_length_libbase, and funcman_configpath.
Referenced by main().