From ed376009aa0fe128fc0b43c1211be6c7c0d2cfe6 Mon Sep 17 00:00:00 2001 From: gudnimg Date: Sat, 4 Nov 2023 20:57:31 +0000 Subject: [PATCH] PFW-1523 Force inline unquoted_string constructor Saves 36 bytes of flash --- Firmware/util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Firmware/util.h b/Firmware/util.h index 0e041a8f4..02c7208b7 100644 --- a/Firmware/util.h +++ b/Firmware/util.h @@ -89,7 +89,8 @@ struct unquoted_string { public: /// @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. - 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) , found(false) {