Add more assertions to animations engine.
This commit is contained in:
		
							parent
							
								
									fa3bf11a7f
								
							
						
					
					
						commit
						e7bdcc4155
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -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…
	
	Add table
		
		Reference in a new issue