Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 303d05d

Browse files
committed
Add standard header preamble and footer, a-la intobject.h. Main purpose is extern "C" for C++ programs.
1 parent 49f2681 commit 303d05d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Include/boolobject.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
/* Boolean object interface */
22

3+
#ifndef Py_BOOLOBJECT_H
4+
#define Py_BOOLOBJECT_H
5+
#ifdef __cplusplus
6+
extern "C" {
7+
#endif
8+
9+
310
typedef PyIntObject PyBoolObject;
411

512
extern DL_IMPORT(PyTypeObject) PyBool_Type;
@@ -18,3 +25,8 @@ extern DL_IMPORT(PyIntObject) _Py_ZeroStruct, _Py_TrueStruct;
1825

1926
/* Function to return a bool from a C long */
2027
PyObject *PyBool_FromLong(long);
28+
29+
#ifdef __cplusplus
30+
}
31+
#endif
32+
#endif /* !Py_BOOLOBJECT_H */

0 commit comments

Comments
 (0)