From 80bede20187afb86d6372bffb98e75d781ead644 Mon Sep 17 00:00:00 2001 From: wangjiyu Date: Thu, 10 Apr 2025 21:48:21 +0800 Subject: [PATCH] debug --- util/RTCContext.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/RTCContext.cpp b/util/RTCContext.cpp index 5d89de0..66d95d4 100644 --- a/util/RTCContext.cpp +++ b/util/RTCContext.cpp @@ -93,6 +93,9 @@ void RTCContext::onAudioProcess(const char* roomId, const char* peerId, auto ptmp = (PyObject*(*)(int, npy_intp*, int))numpyApi_[93]; 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避免编译器优化问题 PyArray_SimpleNew_t PyArray_SimpleNew;