Scippy

SCIP

Solving Constraint Integer Programs

message.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program and library */
4 /* SCIP --- Solving Constraint Integer Programs */
5 /* */
6 /* Copyright (C) 2002-2014 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SCIP is distributed under the terms of the ZIB Academic License. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SCIP; see the file COPYING. If not email to scip@zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file message.h
17  * @brief message output methods
18  * @author Tobias Achterberg
19  *
20  * Because the message functions are implemented as defines with more than one
21  * function call, they shouldn't be used as a single statement like in:
22  * if( error )
23  * SCIPerrorMessage("an error occured");
24  * because this would produce the following macro extension:
25  * if( error )
26  * printf(("[%s:%d] ERROR: ", __FILE__, __LINE__);
27  * printf(("an error occured");
28  * Instead, they should be protected with brackets:
29  * if( error )
30  * {
31  * SCIPerrorMessage("an error occured");
32  * }
33  */
34 
35 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36 
37 #ifndef __SCIP_MESSAGE_H__
38 #define __SCIP_MESSAGE_H__
39 
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif
51 
52