PFW-1523 Force inline unquoted_string constructor

Saves 36 bytes of flash
This commit is contained in:
gudnimg 2023-11-04 20:57:31 +00:00
parent 20a2216623
commit ed376009aa
1 changed files with 2 additions and 1 deletions

View File

@ -89,7 +89,8 @@ struct unquoted_string {
public: public:
/// @brief Given a pointer to a quoted string, filter out the quotes /// @brief Given a pointer to a quoted string, filter out the quotes
/// @param pStr A constant pointer to a constant string to be searched/filtered. Modifying the pointer is strictly forbidden. /// @param pStr A constant pointer to a constant string to be searched/filtered. Modifying the pointer is strictly forbidden.
unquoted_string(const char * const pStr) /// NOTE: Forcing inline saves ~36 bytes of flash
inline __attribute__((always_inline)) unquoted_string(const char * const pStr)
: len(0) : len(0)
, found(false) , found(false)
{ {