quickjs-wasm-sys 1.2.1

Rust bindings for Wasm build of QuickJS
Documentation
51,56c51,55
< // #if defined(EMSCRIPTEN)
< // #define DIRECT_DISPATCH  0
< // #else
< // #define DIRECT_DISPATCH  1
< // #endif
< #define DIRECT_DISPATCH 0
---
> #if defined(EMSCRIPTEN)
> #define DIRECT_DISPATCH  0
> #else
> #define DIRECT_DISPATCH  1
> #endif
64,67c63,66
< // #if !defined(_WIN32)
< // /* define it if printf uses the RNDN rounding mode instead of RNDNA */
< // #define CONFIG_PRINTF_RNDN
< // #endif
---
> #if !defined(_WIN32)
> /* define it if printf uses the RNDN rounding mode instead of RNDNA */
> #define CONFIG_PRINTF_RNDN
> #endif
71,73c70,72
< // #if !defined(EMSCRIPTEN)
< // #define CONFIG_ATOMICS
< // #endif
---
> #if !defined(EMSCRIPTEN)
> #define CONFIG_ATOMICS
> #endif
75c74
< // #if !defined(EMSCRIPTEN)
---
> #if !defined(EMSCRIPTEN)
77,78c76,77
< // #define CONFIG_STACK_CHECK
< // #endif
---
> #define CONFIG_STACK_CHECK
> #endif
1668,1679c1667,1671
< // #if defined(__APPLE__)
< //     return malloc_size(ptr);
< // #elif defined(_WIN32)
< //     return _msize(ptr);
< // #elif defined(EMSCRIPTEN)
< //     return 0;
< // #elif defined(__linux__)
< //     return malloc_usable_size(ptr);
< // #else
< //     /* change this to `return 0;` if compilation fails */
< //     return malloc_usable_size(ptr);
< // #endif
---
> #if defined(__APPLE__)
>     return malloc_size(ptr);
> #elif defined(_WIN32)
>     return _msize(ptr);
> #elif defined(EMSCRIPTEN)
1680a1673,1678
> #elif defined(__linux__)
>     return malloc_usable_size(ptr);
> #else
>     /* change this to `return 0;` if compilation fails */
>     return malloc_usable_size(ptr);
> #endif
1743,1754c1741,1745
< // #if defined(__APPLE__)
< //     malloc_size,
< // #elif defined(_WIN32)
< //     (size_t (*)(const void *))_msize,
< // #elif defined(EMSCRIPTEN)
< //     NULL,
< // #elif defined(__linux__)
< //     (size_t (*)(const void *))malloc_usable_size,
< // #else
< //     /* change this to `NULL,` if compilation fails */
< //     malloc_usable_size,
< // #endif
---
> #if defined(__APPLE__)
>     malloc_size,
> #elif defined(_WIN32)
>     (size_t (*)(const void *))_msize,
> #elif defined(EMSCRIPTEN)
1755a1747,1752
> #elif defined(__linux__)
>     (size_t (*)(const void *))malloc_usable_size,
> #else
>     /* change this to `NULL,` if compilation fails */
>     malloc_usable_size,
> #endif