Scippy

SCIP

Solving Constraint Integer Programs

retcode.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-2017 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 retcode.h
17  * @ingroup INTERNALAPI
18  * @brief internal methods for return codes for SCIP methods
19  * @author Tobias Achterberg
20  */
21 
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
23 
24 #ifndef __SCIP_RETCODE_H__
25 #define __SCIP_RETCODE_H__
26 
27 #include <stdio.h>
28 
29 #include "scip/pub_message.h"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 /** prints error message for return code */
36 extern
37 void SCIPretcodePrint(
38  SCIP_MESSAGEHDLR* messagehdlr, /**< message handler */
39  FILE* file, /**< file stream to write error message */
40  SCIP_RETCODE retcode /**< SCIP return code causing the error */
41  );
42 
43 /** prints error message for return code via error message */
44 extern
46  SCIP_RETCODE retcode /**< SCIP return code causing the error */
47  );
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:53
void SCIPretcodePrint(SCIP_MESSAGEHDLR *messagehdlr, FILE *file, SCIP_RETCODE retcode)
Definition: retcode.c:28
void SCIPretcodePrintError(SCIP_RETCODE retcode)
Definition: retcode.c:100
public methods for message output