/* * werr * Just like the old one, only nicer. * * v. 1.00 (8 Aug 1991) * * © 1991-1998 Straylight */ /*----- Licensing note ----------------------------------------------------* * * This file is part of Straylight's Steel library. * * Steel is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * Steel is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Steel. If not, write to the Free Software Foundation, * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __werr_h #define __werr_h /* * void werr_bleepy(void) * * Use * Bleeps if and only if the appropriate WimpFlags bit is right for * bleeping. */ void werr_bleepy(void); /* * void werr_init(void) * * Use * Sets up the werr system ready for action. */ void werr_init(void); /* * void werr(int fatal,char *error,...) * * Use * Compatibility with the old werr segment mainly. * * Parameters * int fatal == 1 if the error is fatal, or 0 otherwise. * char *error == printf()-type format string. */ void werr(int fatal,char *error,...); /* * int werr_error(int buttons,char *error,...) * * Use * Reports an error. You can have two buttons, OK and Cancel if you really * want, now. * * Parameters * int buttons == 1 for 1 button, 2 for 2 buttons, or anything else for an * unpredictable result. * char *error == printf()-like format string. * * Returns * 1 for OK, 0 for cancel. */ int werr_error(int buttons,char *error,...); #endif