diff --git a/examples/README.txt b/examples/README.txt index de4c75926..fa6ba3e95 100644 --- a/examples/README.txt +++ b/examples/README.txt @@ -540,8 +540,6 @@ examples/helloxx CONFIG_NSH_BUILTIN_APPS -- Build the helloxx example as a "built-in" that can be executed from the NSH command line. - CONFIG_EXAMPLES_HELLOXX_NOSTACKCONST - Set if the system does not - support construction of objects on the stack. Also needed: diff --git a/examples/helloxx/helloxx_main.cxx b/examples/helloxx/helloxx_main.cxx index 2edae8181..18293838e 100644 --- a/examples/helloxx/helloxx_main.cxx +++ b/examples/helloxx/helloxx_main.cxx @@ -128,12 +128,10 @@ extern "C" // Exercise an C++ object instantiated on the stack -#ifndef CONFIG_EXAMPLES_HELLOXX_NOSTACKCONST CHelloWorld HelloWorld; printf("helloxx_main: Saying hello from the instance constructed on the stack\n"); HelloWorld.HelloWorld(); -#endif // Exercise an statically constructed C++ object