Dip  0.92.4
spp_macros.h
Go to the documentation of this file.
1 /*===========================================================================*/
2 /* */
3 /* This file is part of a demonstration application for use with the */
4 /* SYMPHONY Branch, Cut, and Price Library. This application is a solver for */
5 /* the Set Partitioning Problem. */
6 /* */
7 /* (c) Copyright 2005-2013 Marta Eso and Ted Ralphs. All Rights Reserved. */
8 /* */
9 /* This application was originally developed by Marta Eso and was modified */
10 /* Ted Ralphs (ted@lehigh.edu) */
11 /* */
12 /* This software is licensed under the Eclipse Public License. Please see */
13 /* accompanying file for terms. */
14 /* */
15 /*===========================================================================*/
16 
17 #ifndef _SPP_MACROS_H_
18 #define _SPP_MACROS_H_
19 
20 #define OPEN_WRITE_ERROR(x) \
21 { \
22  (void) fprintf(stderr, \
23  "ERROR: Could not open file %s for writing!\n", x ); \
24  exit(1); \
25 }
26 
27 #define OPEN_READ_ERROR(x) \
28 { \
29  (void) fprintf(stderr, \
30  "ERROR: Could not open file %s for reading!\n", x ); \
31  exit(1); \
32 }
33 
34 #define IO_ERROR \
35 { \
36  (void) fprintf(stderr, \
37  "pp_read_input : Problem while reading input file\n"); \
38  exit(1); \
39 }
40 
41 #endif