-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_core.h
38 lines (31 loc) · 863 Bytes
/
_core.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* _core.h */
/* Common header file for the _core module. */
#ifndef _CORE_H_INCLUDED
#define _CORE_H_INCLUDED
#include <Python.h>
#include <structmember.h>
#ifdef DEBUG
#define LOGF(fmt, args...) printf("*** %s:%d (%s) " fmt "\n", \
__FILE__, __LINE__, __FUNCTION__, args)
#define LOGS(s) LOGF("%s", s)
#define LOG() LOGF("%s", "")
#else
#define LOGF(fmt, args...)
#define LOGS(s)
#define LOG()
#endif
/* String constants */
#define S_IHEAP "__instanceheap__"
#define S_DHEAP "__dataheap__"
#define S_SYNCH "__synch__"
#define S_ENTER "enter"
#define S_LEAVE "leave"
#define S_ALLOC "alloc"
#define S_REALLOC "realloc"
#define S_FREE "free"
extern PyObject *ErrorObject;
extern PyObject *TypeMap;
/* These are updated by Process_Init() each time a new process is forked */
extern int my_pid;
extern int my_pindex;
#endif