forked from Archive/PX4-Autopilot
px4_posix.h: add px4_exit()
This commit is contained in:
parent
8a84472795
commit
bd87bee632
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue