[Javascript] Fix handling of functions which take void*

Fixes #682
This commit is contained in:
Olly Betts 2022-03-07 13:24:37 +13:00 committed by Olly Betts
commit 8dbcd710ff
5 changed files with 36 additions and 2 deletions

View file

@ -9,6 +9,7 @@ class Foo {
public:
Foo(void) { }
void memberfunc(void) { }
void* get_this() { return this; }
static void staticmemberfunc(void) { }
};
@ -18,4 +19,6 @@ void *vfunc2(Foo *f) { return f; }
Foo *vfunc3(void *f) { return (Foo *) f; }
Foo *vfunc4(Foo *f) { return f; }
bool test_pointers_equal(void *a, void *b) { return a == b; }
%}