mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
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…
x
Reference in New Issue
Block a user