IKBT icon indicating copy to clipboard operation
IKBT copied to clipboard

Syntax error in generated cpp code.

Open xoxota99 opened this issue 5 years ago • 2 comments

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.

xoxota99 avatar May 21 '19 19:05 xoxota99

Can't post pull requests, or I'd fix it myself ;-)

xoxota99 avatar May 22 '19 17:05 xoxota99

pull request welcome. I've added you as a collab.

blake5634 avatar May 22 '19 19:05 blake5634