generated from ut-issl/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aaee537
commit 8cec6b9
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* @file | ||
* @brief Result enum の定義 | ||
*/ | ||
#ifndef RESULT_H_ | ||
#define RESULT_H_ | ||
|
||
/** | ||
* @enum RESULT | ||
* @brief Rust でいうところの Result<T, E> のような,汎用的な返り値用 enum | ||
* @note uint8_t を想定 | ||
*/ | ||
typedef enum | ||
{ | ||
RESULT_OK = 0, //!< OK | ||
RESULT_ERR //!< Error or NG | ||
} RESULT; | ||
|
||
#endif |