Skip to content

Syntax error in generated cpp code. #23

Description

@xoxota99

output_cpp.py contains the following code on line 106:

        tmp += 'double '+str(p) + ' = XXXXX ; \\ deliberate undeclared error!  USER needs to give numerical value\n'

This should instead read:

        tmp += 'double '+str(p) + ' = XXXXX ; // deliberate undeclared error!  USER needs to give numerical value\n'

As it is, the generated cpp code will not parse, because of the backslashes. The above fix retains the intentional undeclared error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions