Skip to content

Commit 3b9d198

Browse files
committed
Add __noreturn for zephyr
Signed-off-by: Siddharth Chandrasekaran <sidcha.dev@gmail.com>
1 parent fc0d8da commit 3b9d198

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

include/utils/utils.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ extern "C" {
154154
#define PATH_SEPARATOR '/'
155155
#define __unreachable() __builtin_unreachable()
156156
#define __format_printf(x, y) __attribute__((format(printf, x, y)))
157+
#ifndef __noreturn
158+
#define __noreturn __attribute__((noreturn))
159+
#endif
157160

158161
#else
159162

0 commit comments

Comments
 (0)