Move prototype from nuttx/include/nuttx/arch.h to apps/include/platform/cxxinitialize.h

This commit is contained in:
Gregory Nutt 2017-05-13 16:53:55 -06:00
parent b0fda33e13
commit 7fd08a60a3
2 changed files with 0 additions and 28 deletions

View File

@ -1940,26 +1940,6 @@ char up_romgetc(FAR const char *ptr);
void up_mdelay(unsigned int milliseconds);
void up_udelay(useconds_t microseconds);
/****************************************************************************
* Name: up_cxxinitialize
*
* Description:
* If C++ and C++ static constructors are supported, then this function
* must be provided by board-specific logic in order to perform
* initialization of the static C++ class instances.
*
* This function should then be called in the application-specific
* logic in order to perform the C++ initialization. NOTE that no
* component of the core NuttX RTOS logic is involved; This function
* definition only provides the 'contract' between application
* specific C++ code and platform-specific toolchain support
*
****************************************************************************/
#if defined(CONFIG_HAVE_CXX) && defined(CONFIG_HAVE_CXXINITIALIZE)
void up_cxxinitialize(void);
#endif
/****************************************************************************
* These are standard interfaces that are exported by the OS for use by the
* architecture specific logic

View File

@ -22,14 +22,6 @@ config HAVE_CXX
if HAVE_CXX
config HAVE_CXXINITIALIZE
bool "Have C++ initialization"
default n
---help---
The platform-specific logic includes support for initialization
of static C++ instances for this architecture and for the selected
toolchain (via up_cxxinitialize()).
config CXX_NEWLONG
bool "size_t is type long"
default n