If the string representation of a component Instance contains the characters */ this multiline comment will break, and the resulting C file will not compile.
Either remove this line entirely, or only include the 'basic' positioning/orienting part of the instance definition.
// COMPONENT instance = Type() AT (x, y, z) RELATIVE rel ROTATED (a, b, c) RELATIVE rel
without any GROUP, JUMP, EXTEND, METADATA, etc., information following.
https://github.com/McStasMcXtrace/mccode-antlr/blob/132fb4fa1733f614d190b6bf856548be5293aa2d/mccode_antlr/translators/c_initialise.py#L43
If the string representation of a component
Instance
contains the characters*/
this multiline comment will break, and the resulting C file will not compile.Either remove this line entirely, or only include the 'basic' positioning/orienting part of the instance definition.
// COMPONENT instance = Type() AT (x, y, z) RELATIVE rel ROTATED (a, b, c) RELATIVE rel
without anyGROUP
,JUMP
,EXTEND
,METADATA
, etc., information following.