document.currentScript.insertAdjacentHTML('beforebegin', 'this is the document.write alternative');
https://developer.mozilla.org/en-US/docs/Web/API/Document/currentScript https: // developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentHTML
Кажется, это дубликат . Есть ли способ обернуть блок ObjectiveC в указатель на функцию? , где совет «не делай этого».
Вместо этого, вы не можете использовать простой указатель на функцию C? Определите функцию
void createWalletCallback(int32_t t, int32_t e) {
// some code here, maybe referencing global variables
// (including a semaphore, if other code needs to wait on the response)
}
, а затем просто вызовите
createWallet(&createWalletCallback);