From 4e10b692f8fbecfc3ef6393a7fb6bb515c277546 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Thu, 2 Jul 2020 12:12:09 +0800 Subject: [PATCH] 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 Change-Id: I0297d192df3beaa78ae7ee75f24ae51476bb30a9 --- examples/README.txt | 2 -- examples/helloxx/helloxx_main.cxx | 2 -- 2 files changed, 4 deletions(-) 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