Debian Codegraph @

src/main/c/jpy_diag.h

raw symbols SCIP
1 /*
2 * Copyright 2015 Brockmann Consult GmbH
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #ifndef JPY_DIAG_H
18 #define JPY_DIAG_H
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 #include "jpy_compat.h"
25
26 typedef struct JPy_Diag
27 {
28 PyObject_HEAD
29 int flags;
30 int F_OFF;
31 int F_TYPE;
32 int F_METH;
33 int F_EXEC;
34 int F_MEM;
35 int F_JVM;
36 int F_ERR;
37 int F_ALL;
38 }
39 JPy_Diag;
40
41
42 #define JPy_DIAG_F_OFF 0x00
43 #define JPy_DIAG_F_TYPE 0x01
44 #define JPy_DIAG_F_METH 0x02
45 #define JPy_DIAG_F_EXEC 0x04
46 #define JPy_DIAG_F_MEM 0x08
47 #define JPy_DIAG_F_JVM 0x10
48 #define JPy_DIAG_F_ERR 0x20
49 #define JPy_DIAG_F_ALL 0xff
50
51 extern PyTypeObject Diag_Type;
52 extern int JPy_DiagFlags;
53
54 PyObject* Diag_New(void);
55
56 void JPy_DiagPrint(int diagFlags, const char * format, ...);
57
58 #define JPy_DIAG_PRINT if (JPy_DiagFlags != 0) JPy_DiagPrint
59
60
61 #ifdef __cplusplus
62 } /* extern "C" */
63 #endif
64 #endif /* !JPY_DIAG_H */