1 package nmp.util; 2 3 public class AssertB 4 { 5 public static boolean debug = true; 6 7 public static void assertb( boolean test) { 8 if( ! test) { 9 Thread.currentThread().dumpStack(); 10 System.exit( 1); 11 } 12 } 13 14 public static void assertb( boolean test, String msg) { 15 if( ! test) { 16 Thread.currentThread().dumpStack(); 17 System.err.println( msg); 18 System.err.flush(); 19 System.exit( 1); 20 } 21 } 22 23 public static void assertb_continue( boolean test, String msg) { 24 if( ! test) { 25 Thread.currentThread().dumpStack(); 26 System.err.println( msg); 27 System.err.flush(); 28 } 29 } 30 }

This page was automatically generated by Maven