flst / upstream /emscripten /test /embind /test_embind_wrong_ret_allow.cpp
arudradey's picture
Upload folder using huggingface_hub
00df61d verified
Raw
History Blame Contribute Delete
228 Bytes
#include <emscripten/bind.h>
using namespace emscripten;
class C {};
void passThrough(C* ptr) {}
EMSCRIPTEN_BINDINGS(raw_pointers) {
class_<C>("C");
function("passThrough", &passThrough, allow_raw_pointer<ret_val>());
}