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