summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-02 23:22:48 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-02 23:22:48 +0000
commit3c21deaf5b357b69a32b515c620616a2b6242594 (patch)
tree6e51b4248a054654fd98ba2e88084d54a40dcf31 /apps
parent93e2ebb1e771bf5a4bfd250def96f61b3df91b04 (diff)
downloadpx4-nuttx-3c21deaf5b357b69a32b515c620616a2b6242594.tar.gz
px4-nuttx-3c21deaf5b357b69a32b515c620616a2b6242594.tar.bz2
px4-nuttx-3c21deaf5b357b69a32b515c620616a2b6242594.zip
Create an STM32F4Discovery configuration for testing uClibc++
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5300 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps')
-rw-r--r--apps/examples/cxxtest/cxxtest_main.cxx22
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;
+ }
}
+