example/helloxx: Remove EXAMPLES_HELLOXX_NOSTACKCONST

since this config doesn't appear inside examples/helloxx/Kconfig anymore and
there is any c++ compiler can't construct the stack object as far as I know

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I0297d192df3beaa78ae7ee75f24ae51476bb30a9
This commit is contained in:
Xiang Xiao 2020-07-02 12:12:09 +08:00 committed by Alin Jerpelea
parent 9df0272279
commit 4e10b692f8
2 changed files with 0 additions and 4 deletions

View File

@ -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:

View File

@ -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