Document of c-modernization-kit (override-sample) 1.0.0
Loading...
Searching...
No Matches
override_func.c
Go to the documentation of this file.
1
15
16#include <libbase.h>
17#include <libbase_ext.h>
18#include <stddef.h>
19
20/* doxygen コメントは、ヘッダに記載 */
21int BASE_EXT_API override_func(const int a, const int b, int *result)
22{
23 if (result == NULL)
24 {
25 return -1;
26 }
27 console_output("override_func: a=%d, b=%d の処理 (*result = a * b;) を行います\n", a, b);
28 *result = a * b;
29 return 0;
30}
ベースライブラリ (動的リンク用) のヘッダーファイル。
BASE_EXPORT void BASE_API console_output(const char *format,...)
printf と同じ書式でコンソールに出力します。
オーバーライドライブラリ (動的リンク用) のヘッダーファイル。
#define BASE_EXT_API
呼び出し規約マクロ。
Definition libbase_ext.h:44
int BASE_EXT_API override_func(const int a, const int b, int *result)
sample_func のオーバーライド実装。