The MSVC C++ compiler does not support compound literals. So we need to update the code generation to properly generate code that can be used from C++.
In eurydice_glue.h we add something like this.
#if defined(__cplusplus)
#define CLITERAL(type) type
#else
#define CLITERAL(type) (type)
#endif
Then every such invocation needs to change to
CLITERAL(type){...}
In eurydice_glue.h manually, but in the generated code we need this pattern as well.
The MSVC C++ compiler does not support compound literals. So we need to update the code generation to properly generate code that can be used from C++.
In
eurydice_glue.h
we add something like this.Then every such invocation needs to change to
In
eurydice_glue.h
manually, but in the generated code we need this pattern as well.I'm not sure if the fix is here or in karamel.