Non-const REMEMBER needed for RESTORE
This commit is contained in:
parent
f29d6f802f
commit
924fa6045c
|
@ -71,7 +71,7 @@ public:
|
||||||
inline void restore() { ref_ = val_; }
|
inline void restore() { ref_ = val_; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#define REMEMBER(N,X,V...) const restorer<typeof(X)> restorer_##N(X, ##V)
|
#define REMEMBER(N,X,V...) restorer<typeof(X)> restorer_##N(X, ##V)
|
||||||
#define RESTORE(N) restorer_##N.restore()
|
#define RESTORE(N) restorer_##N.restore()
|
||||||
|
|
||||||
// Converts from an uint8_t in the range of 0-255 to an uint8_t
|
// Converts from an uint8_t in the range of 0-255 to an uint8_t
|
||||||
|
|
Loading…
Reference in a new issue