C2A_Core
総合概要
データ構造
データ構造
データ構造索引
データフィールド
全て
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
~
関数
変数
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
ファイル
ファイル一覧
大域各種
全て
a
b
c
d
e
g
h
i
m
n
o
p
r
s
t
u
v
w
y
関数
a
b
c
d
e
g
h
i
m
n
o
p
r
s
t
u
v
w
変数
a
b
c
d
e
g
i
m
p
r
s
t
u
w
型定義
列挙型
a
b
c
d
e
g
i
m
p
r
s
t
u
v
列挙値
a
b
c
d
e
g
i
m
p
r
s
t
u
v
y
マクロ定義
a
b
c
d
e
g
m
o
p
s
t
u
v
•
全て
データ構造
ファイル
関数
変数
型定義
列挙型
列挙値
マクロ定義
result.h
[詳解]
1
5
#ifndef RESULT_H_
6
#define RESULT_H_
7
13
typedef
enum
14
{
15
RESULT_OK
= 0,
16
RESULT_ERR
17
}
RESULT
;
18
19
#endif
RESULT
RESULT
Rust でいうところの Result<(), ()> のような,汎用的な成功したかどうかだけの返り値用 enum
Definition:
result.h:14
RESULT_OK
@ RESULT_OK
OK (C2A では慣習的に OK 系列挙子は 0 を使うので,万が一他の enum に cast されても事故が起きにくいように)
Definition:
result.h:15
RESULT_ERR
@ RESULT_ERR
Error or NG
Definition:
result.h:16
src
src_core
Library
result.h
構築:
1.9.1