You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use QuickJS in a C++ application. When I compile with the MS compiler, I get the following compile errors:
0>quickjs.h(487): Error C4576 : a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax
0>quickjs.h(492): Error C4576 : a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax
0>quickjs.h(502): Error C4576 : a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax
If I remove the () from JS_MKVAL (see below), it compiles.
#define JS_MKVAL(tag, val) JSValue{ JSValueUnion{ .int32 = val }, tag }
The text was updated successfully, but these errors were encountered:
Check that quickjs.h parses without error when fed to a C++ compiler.
Fixes: quickjs-ng/quickjs#608
Co-authored-by: Saúl Ibarra Corretgé <[email protected]>
I want to use QuickJS in a C++ application. When I compile with the MS compiler, I get the following compile errors:
If I remove the () from JS_MKVAL (see below), it compiles.
The text was updated successfully, but these errors were encountered: