Skip to content

Commit 910ab64

Browse files
committed
chore: set boolean as deprecated
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 4a02bfc commit 910ab64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: api/Common.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ typedef void (*voidFuncPtrParam)(void*);
9393
#endif
9494

9595
/* TODO: request for removal */
96-
typedef bool boolean;
96+
typedef bool boolean __attribute__((deprecated));
9797
typedef uint8_t byte;
9898
typedef uint16_t word;
9999

@@ -141,13 +141,13 @@ void loop(void);
141141
#endif
142142

143143
#ifdef __cplusplus
144-
template<class T, class L>
144+
template<class T, class L>
145145
auto min(const T& a, const L& b) -> decltype((b < a) ? b : a)
146146
{
147147
return (b < a) ? b : a;
148148
}
149149

150-
template<class T, class L>
150+
template<class T, class L>
151151
auto max(const T& a, const L& b) -> decltype((b < a) ? b : a)
152152
{
153153
return (a < b) ? b : a;

0 commit comments

Comments
 (0)