Skip to content
Snippets Groups Projects
Commit fe6ba4fd authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Tweak REMEMBER

parent 584c86be
Branches
Tags
No related merge requests found
...@@ -59,7 +59,7 @@ public: ...@@ -59,7 +59,7 @@ public:
inline void restore() { ref_ = val_; } inline void restore() { ref_ = val_; }
}; };
#define REMEMBER(N,X, ...) restorer<typeof(X)> restorer_##N(X, ##__VA_ARGS__) #define REMEMBER(N,X, ...) const restorer<typeof(X)> restorer_##N(X, ##__VA_ARGS__)
#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
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment