File size: 228 Bytes
00df61d
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
#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>());
}