optimisation: always inline ReportingRAII
Tested on MK3S+ using the LCD. Change in memory: Flash: -80 bytes SRAM: 0 bytes
This commit is contained in:
parent
162f8b4cc8
commit
90322a7181
|
|
@ -194,11 +194,11 @@ void MMU2::CheckFINDARunout() {
|
|||
|
||||
struct ReportingRAII {
|
||||
CommandInProgress cip;
|
||||
explicit inline ReportingRAII(CommandInProgress cip)
|
||||
explicit inline __attribute__((always_inline)) ReportingRAII(CommandInProgress cip)
|
||||
: cip(cip) {
|
||||
BeginReport(cip, (uint16_t)ProgressCode::EngagingIdler);
|
||||
}
|
||||
inline ~ReportingRAII() {
|
||||
inline __attribute__((always_inline)) ~ReportingRAII() {
|
||||
EndReport(cip, (uint16_t)ProgressCode::OK);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue