From bd87bee632371100e16efe41bcf3c5ddff3032e0 Mon Sep 17 00:00:00 2001 From: TSC21 Date: Sun, 26 May 2019 11:50:32 +0100 Subject: [PATCH] px4_posix.h: add px4_exit() --- src/platforms/px4_posix.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/platforms/px4_posix.h b/src/platforms/px4_posix.h index fab6fbdcf6..973a73e1af 100644 --- a/src/platforms/px4_posix.h +++ b/src/platforms/px4_posix.h @@ -83,6 +83,12 @@ typedef struct pollfd px4_pollfd_struct_t; #define PX4_STACK_OVERHEAD 8192 +/** + * Terminates the calling process immediately. + * @return 0 on success, 1 on error + */ +#define px4_exit(status) ({return status;}) + __BEGIN_DECLS typedef short pollevent_t;