Kaynağa Gözat

Tweak REMEMBER

Scott Lahteine 5 yıl önce
ebeveyn
işleme
fe6ba4fd70
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1
    1
      Marlin/src/core/utility.h

+ 1
- 1
Marlin/src/core/utility.h Dosyayı Görüntüle

@@ -59,7 +59,7 @@ public:
59 59
   inline void restore() { ref_ = val_; }
60 60
 };
61 61
 
62
-#define REMEMBER(N,X, ...) restorer<typeof(X)> restorer_##N(X, ##__VA_ARGS__)
62
+#define REMEMBER(N,X, ...) const restorer<typeof(X)> restorer_##N(X, ##__VA_ARGS__)
63 63
 #define RESTORE(N) restorer_##N.restore()
64 64
 
65 65
 // Converts from an uint8_t in the range of 0-255 to an uint8_t

Loading…
İptal
Kaydet