mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
px4_posix.h: add px4_exit()
This commit is contained in:
@@ -83,6 +83,12 @@ typedef struct pollfd px4_pollfd_struct_t;
|
|||||||
|
|
||||||
#define PX4_STACK_OVERHEAD 8192
|
#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
|
__BEGIN_DECLS
|
||||||
|
|
||||||
typedef short pollevent_t;
|
typedef short pollevent_t;
|
||||||
|
|||||||
Reference in New Issue
Block a user