mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2026-08-09 11:47:16 -05:00
feat: Add missing macro to check for errors
Other parts of core have this already, align as these are useful to make the code more readable.
This commit is contained in:
parent
71e6b1e29f
commit
87fb71d769
|
|
@ -7,6 +7,9 @@
|
|||
|
||||
typedef struct bt_core_config bt_core_config_t;
|
||||
|
||||
#define BT_CORE_CONFIG_RESULT_IS_ERROR(x) \
|
||||
(x > BT_CORE_CONFIG_RESULT_SUCCESS)
|
||||
|
||||
typedef enum bt_core_config_result {
|
||||
BT_CORE_CONFIG_RESULT_SUCCESS = 0,
|
||||
BT_CORE_CONFIG_RESULT_ERROR_INTERNAL = 1,
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#define BT_CORE_THREAD_RESULT_IS_ERROR(x) \
|
||||
(x > BT_CORE_THREAD_RESULT_SUCCESS)
|
||||
|
||||
typedef enum bt_core_thread_result {
|
||||
BT_CORE_THREAD_RESULT_SUCCESS = 0,
|
||||
BT_CORE_THREAD_RESULT_ERROR_INTERNAL = 1,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user