1
2/*
3 *  M_APM  -  mapmutl1.c
4 *
5 *  Copyright (C) 2003 - 2007   Michael C. Ring
6 *
7 *  Permission to use, copy, and distribute this software and its
8 *  documentation for any purpose with or without fee is hereby granted,
9 *  provided that the above copyright notice appear in all copies and
10 *  that both that copyright notice and this permission notice appear
11 *  in supporting documentation.
12 *
13 *  Permission to modify the software is granted. Permission to distribute
14 *  the modified code is granted. Modifications are to be distributed by
15 *  using the file 'license.txt' as a template to modify the file header.
16 *  'license.txt' is available in the official MAPM distribution.
17 *
18 *  This software is provided "as is" without express or implied warranty.
19 */
20
21/*
22 *      $Id: mapmutl1.c,v 1.4 2007/12/03 01:59:27 mike Exp $
23 *
24 *      This file contains the utility function 'M_apm_log_error_msg'
25 *
26 *	This is the only function in this file so a user can supply
27 *	their own custom version easily without changing the base library.
28 *
29 *      $Log: mapmutl1.c,v $
30 *      Revision 1.4  2007/12/03 01:59:27  mike
31 *      Update license
32 *
33 *      Revision 1.3  2003/07/21 21:00:34  mike
34 *      Modify error messages to be in a consistent format.
35 *
36 *      Revision 1.2  2003/05/05 18:38:27  mike
37 *      fix comment
38 *
39 *      Revision 1.1  2003/05/04 18:19:14  mike
40 *      Initial revision
41 */
42
43#include "m_apm_lc.h"
44
45/****************************************************************************/
46void	M_apm_log_error_msg(int fatal, char *message)
47{
48if (fatal)
49  {
50   fprintf(stderr, "MAPM Error: %s\n", message);
51   exit(100);
52  }
53else
54  {
55   fprintf(stderr, "MAPM Warning: %s\n", message);
56  }
57}
58/****************************************************************************/
59
60