Skip to content

Commit

Permalink
fix: use bool instead of _Bool also in generated code. (#390)
Browse files Browse the repository at this point in the history
All other previous usages of _Bool were already removed
in PR #268.

These seem to be the last two left.

This patch is actually necessary in some compiler scenarios using Musl.

Co-authored-by: Francesco Cervigni <f.cervigni@ext.mylight-systems.com>
  • Loading branch information
neonsoftware and Francesco Cervigni committed Feb 28, 2023
1 parent 625889f commit ff3b834
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -46,15 +46,15 @@
/**
* @brief Determines if a result code is succeeded.
*/
static inline _Bool IsAducResultCodeSuccess(const ADUC_Result_t resultCode)
static inline bool IsAducResultCodeSuccess(const ADUC_Result_t resultCode)
{{
return (resultCode > 0);
}}
/**
* @brief Determines if a result code is failed.
*/
static inline _Bool IsAducResultCodeFailure(const ADUC_Result_t resultCode)
static inline bool IsAducResultCodeFailure(const ADUC_Result_t resultCode)
{{
return (resultCode <= 0);
}}
Expand Down

0 comments on commit ff3b834

Please sign in to comment.