//| <include path='docs/doc[@for="Assert.Fail"]/*' /> public static void Fail(String conditionString, String message) { // Run through the list of filters backwards (the last filter in the list // is the default filter. So we're guaranteed that there will be at least // one filter to handle the assert. int iTemp = iNumOfFilters; while (iTemp > 0) { AssertFilters iResult = ListOfFilters [--iTemp].AssertFailure(conditionString, message); if (iResult == AssertFilters.FailDebug) { #if SINGULARITY_KERNEL DebugStub.Break(); #elif SINGULARITY_PROCESS VTable.DebugBreak(); #endif break; } else if (iResult == AssertFilters.FailTerminate) #if SINGULARITY_KERNEL { Kernel.Shutdown(-1); } #elif SINGULARITY_PROCESS { AppRuntime.Stop(-1); }