SaigeVision C/C++
1.5.0
SaigeVision API document for C/C++
Loading...
Searching...
No Matches
PyHeaderDLL.h
Go to the documentation of this file.
1
4
#pragma once
5
6
#ifdef _DEBUG
7
#define _DEBUG_WAS_DEFINED 1
8
#undef _DEBUG
9
#endif
10
11
#include <Python.h>
12
13
#ifdef _DEBUG_WAS_DEFINED
14
#define _DEBUG 1
15
#endif
16
20
static
void
SR_InitializePython() {
21
if
(Py_IsInitialized() ==
false
) {
22
Py_Initialize();
23
PyEval_SaveThread();
24
}
25
}
26
30
static
void
SR_FinalizePython() {
31
if
(Py_IsInitialized()) {
32
PyGILState_Ensure();
33
Py_Finalize();
34
}
35
}
SaigeRelease
include
PyHeaderDLL.h
Generated by
1.9.5