Пример #1
0
	void
	tSpitLemming<T>::changeLem(typename tSpitLemming<T>::tLemming *from, typename tSpitLemming<T>::tLemming *to){
		ASRT_TRUE(from->mParent == this, "Tried to change from a lemming that didn't come from this manager.");

		to->mParent = this;
		from->mParent = NULL;
	}
Пример #2
0
//---------------------------------------------------------------------------//
static int TestNewAndFree() {
    MC_Stack *stack = MC_StackNew();
    ASRT_TRUE( stack );

    MC_StackFree( &stack );
    ASRT_FALSE( stack );

    return 0;
}
Пример #3
0
//===========================================================================//
int Njak( int x ) {
    ASRT_TRUE( x < 100 );
    return 0;
}