mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 15:53:34 +08:00
up_cxxinitialize:is now automatic in task start
This commit is contained in:
committed by
Daniel Agar
parent
185ffe9e13
commit
c948d41284
@@ -42,25 +42,8 @@
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
|
||||
#include "platform/cxxinitialize.h"
|
||||
|
||||
int px4_platform_init(void)
|
||||
{
|
||||
|
||||
#if defined(CONFIG_HAVE_CXX) && defined(CONFIG_HAVE_CXXINITIALIZE)
|
||||
/* run C++ ctors before we go any further */
|
||||
up_cxxinitialize();
|
||||
|
||||
# if defined(CONFIG_SYSTEM_NSH_CXXINITIALIZE)
|
||||
# error CONFIG_SYSTEM_NSH_CXXINITIALIZE Must not be defined! Use CONFIG_HAVE_CXX and CONFIG_HAVE_CXXINITIALIZE.
|
||||
# endif
|
||||
|
||||
#else
|
||||
# error platform is dependent on c++ both CONFIG_HAVE_CXX and CONFIG_HAVE_CXXINITIALIZE must be defined.
|
||||
#endif
|
||||
|
||||
|
||||
#if !defined(CONFIG_DEV_CONSOLE) && defined(CONFIG_DEV_NULL)
|
||||
|
||||
/* Support running nsh on a board with out a console
|
||||
|
||||
Reference in New Issue
Block a user