freertos/Demo/Common/X.cpp

13 lines
187 B
C++
Raw Normal View History

2024-07-13 16:33:13 +00:00
#include "X.hpp"
X::X(int i) : m{i} {
// constructor body (if needed)
}
int X::mf(int i) {
int old = m;
m = i; // set a new value
return old; // return the old value
}