mirror of
https://github.com/libffi/libffi.git
synced 2026-01-26 10:07:53 +00:00
feat(testsuite): add Emscripten support to libffi.closures tests
This commit is contained in:
parent
2d8868ace7
commit
d38abaf9db
@ -48,6 +48,9 @@ typedef int (*closure_test_type1)(float, float, float, float, signed short,
|
||||
float, float, int, double, int, int, float,
|
||||
int, int, int, int);
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
extern "C"
|
||||
#endif
|
||||
int main (void)
|
||||
{
|
||||
ffi_cif cif;
|
||||
|
||||
@ -14,6 +14,9 @@ static int checking(int a __UNUSED__, short b __UNUSED__,
|
||||
throw 9;
|
||||
}
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
extern "C"
|
||||
#endif
|
||||
int main (void)
|
||||
{
|
||||
ffi_cif cif;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user