[cpp] attach CXXFLAGS to reduce the resource consumptions

This commit is contained in:
Meco Man
2023-06-14 00:03:38 -04:00
committed by Man, Jianting (Meco)
parent c4df1d6a19
commit 4f5ba63c7c
4 changed files with 12 additions and 5 deletions

View File

@@ -17,11 +17,9 @@
#include <rtthread.h>
#define RT_USING_CPP_EXCEPTION
inline void throw_system_error(int err, const char *what_msg)
{
#ifdef RT_USING_CPP_EXCEPTION
#ifdef RT_USING_CPP_EXCEPTIONS
throw std::system_error(std::error_code(err, std::system_category()), what_msg);
#else
(void)err;