| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 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 |
} |
| 63 |
#endif |
| 64 |
#endif |