001/* jpvmDebuge.java 002 * 003 * Adam J Ferrari 004 * Sun 05-26-1996 005 * 006 * Copyright (C) 1996 Adam J Ferrari 007 * 008 * This library is free software; you can redistribute it and/or 009 * modify it under the terms of the GNU Library General Public 010 * License as published by the Free Software Foundation; either 011 * version 2 of the License, or (at your option) any later version. 012 * 013 * This library is distributed in the hope that it will be useful, 014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 016 * Library General Public License for more details. 017 * 018 * You should have received a copy of the GNU Library General Public 019 * License along with this library; if not, write to the 020 * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, 021 * MA 02139, USA. 022 */ 023 024package jpvm; 025 026public 027final class jpvmDebug { 028 public static final boolean on = false; 029 public static final void note(String message) { 030 if(on) { 031 System.out.println("jpvmDebug: "+message); 032 System.out.flush(); 033 } 034 } 035 public static final void error(String message) { 036 System.err.println("jpvmDebug: "+message); 037 System.err.flush(); 038 System.exit(1); 039 } 040};