Add more assertions to animations engine.
This commit is contained in:
parent
fa3bf11a7f
commit
e7bdcc4155
|
@ -36,12 +36,16 @@ void Basic::restart() {
|
||||||
Expects(_started >= 0);
|
Expects(_started >= 0);
|
||||||
|
|
||||||
_started = crl::now();
|
_started = crl::now();
|
||||||
|
|
||||||
|
Ensures(_started >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Basic::markStarted() {
|
void Basic::markStarted() {
|
||||||
Expects(_started < 0);
|
Expects(_started < 0);
|
||||||
|
|
||||||
_started = crl::now();
|
_started = crl::now();
|
||||||
|
|
||||||
|
Ensures(_started >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Basic::markStopped() {
|
void Basic::markStopped() {
|
||||||
|
|
Loading…
Reference in New Issue