px4_posix.h: add px4_exit()

This commit is contained in:
TSC21 2019-05-26 11:50:32 +01:00 committed by Lorenz Meier
parent 8a84472795
commit bd87bee632
1 changed files with 6 additions and 0 deletions

View File

@ -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;