debug
This commit is contained in:
parent
b1d5d59597
commit
80bede2018
|
@ -93,6 +93,9 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId,
|
||||||
|
|
||||||
auto ptmp = (PyObject*(*)(int, npy_intp*, int))numpyApi_[93];
|
auto ptmp = (PyObject*(*)(int, npy_intp*, int))numpyApi_[93];
|
||||||
std::cout << "ptmp is:" << ptmp << std::endl;
|
std::cout << "ptmp is:" << ptmp << std::endl;
|
||||||
|
std::cout << "Pointer sizes:\n"
|
||||||
|
<< "void*: " << sizeof(void*) << "\n"
|
||||||
|
<< "FunctionPtr: " << sizeof(PyObject*(*)(int, npy_intp*, int)) << std::endl;
|
||||||
|
|
||||||
// 2. 使用memcpy避免编译器优化问题
|
// 2. 使用memcpy避免编译器优化问题
|
||||||
PyArray_SimpleNew_t PyArray_SimpleNew;
|
PyArray_SimpleNew_t PyArray_SimpleNew;
|
||||||
|
|
Loading…
Reference in New Issue