We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c8214c commit 2069917Copy full SHA for 2069917
pydatastructs/miscellaneous_data_structures/_backend/cpp/stack/stack.cpp
@@ -4,6 +4,19 @@
4
#include <memory>
5
#include <sstream>
6
#include <typeinfo>
7
+#include <Python.h>
8
+
9
+static PyModuleDef moduledef = {
10
+ PyModuleDef_HEAD_INIT,
11
+ "_stack", /* name of module */
12
+ nullptr, /* module documentation */
13
+ -1, /* size of per-interpreter state of the module */
14
+ nullptr /* methods of the module */
15
+};
16
17
+PyMODINIT_FUNC PyInit__stack(void) {
18
+ return PyModule_Create(&moduledef);
19
+}
20
21
namespace pydatastructs {
22
0 commit comments