ftk

Results 17 comments of ftk

The second example works for me. `log: 1234 result 1` Full code: https://gist.github.com/ftk/3184bd9ab08d753efe6a3470163b2035

Still can't reproduce the bug from the gist: `log: 105 result 1` Which compiler and quickjs version are you running?

I think `std::monostate` is more similar to js `undefined` (because js variables are undefined when not initialized). For js `null` `std::nullptr_t` might be good choice. For variant support, yes, you...

Another idea is to create a specialization for std::optional ```cpp template struct unwrap_arg_impl { static std::optional unwrap(JSContext * ctx, int argc, JSValueConst * argv) { if (size_t(argc)

qjs.cpp is actually a very simplified version of qjs.c from quickjs repo. For example, it always evaluates scripts in 'module' mode. After a simple patch a few more tests are...

You might want to enable `storyboard_upscale` option. https://github.com/marzzzello/mpv_thumbnail_script/blob/6b42232c98ec699e79547b1f52b027d808e50d62/src/options.lua#L131