diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-11-02 23:22:48 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-11-02 23:22:48 +0000 |
commit | 23e8d5321a4de9c08a5f9c1e3a919aa740acca78 (patch) | |
tree | 6e51b4248a054654fd98ba2e88084d54a40dcf31 /apps/examples | |
parent | 708ebb52f0dd9c4305aedf7dcbd4ad8dc5f03aed (diff) | |
download | px4-firmware-23e8d5321a4de9c08a5f9c1e3a919aa740acca78.tar.gz px4-firmware-23e8d5321a4de9c08a5f9c1e3a919aa740acca78.tar.bz2 px4-firmware-23e8d5321a4de9c08a5f9c1e3a919aa740acca78.zip |
Create an STM32F4Discovery configuration for testing uClibc++
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5300 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples')
-rw-r--r-- | apps/examples/cxxtest/cxxtest_main.cxx | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/apps/examples/cxxtest/cxxtest_main.cxx b/apps/examples/cxxtest/cxxtest_main.cxx index 70d54109f..9c2974826 100644 --- a/apps/examples/cxxtest/cxxtest_main.cxx +++ b/apps/examples/cxxtest/cxxtest_main.cxx @@ -203,21 +203,25 @@ static void test_exception(void) // Name: cxxtest_main //***************************************************************************/ -int cxxtest_main(int argc, char *argv[]) +extern "C" { - // If C++ initialization for static constructors is supported, then do - // that first + int cxxtest_main(int argc, char *argv[]) + { + // If C++ initialization for static constructors is supported, then do + // that first #ifdef CONFIG_HAVE_CXXINITIALIZE - up_cxxinitialize(); + up_cxxinitialize(); #endif - test_iostream(); - test_stl(); - test_rtti(); + test_iostream(); + test_stl(); + test_rtti(); #ifdef CONFIG_UCLIBCXX_EXCEPTION - test_exception(); + test_exception(); #endif - return 0; + return 0; + } } + |