mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-19 20:43:43 +08:00
[cpp] attach CXXFLAGS to reduce the resource consumptions
This commit is contained in:

committed by
Man, Jianting (Meco)

parent
c4df1d6a19
commit
4f5ba63c7c
@@ -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;
|
||||
|
Reference in New Issue
Block a user