Menu

#1 Space after a comment not working

open
nobody
None
5
2009-12-08
2009-12-08
Zurd
No

If in a script file if you include this line :
#test
And run the script it will display :
Comment: #test

But if you add this line (with a space after the #) :
# test
It will display :
Comment: #
Unknown tag: test

In xmacroplay.cpp at line 338 we see :
if (ev[0]=='#')
{
cout << "Comment: " << ev << endl;
continue;
}

Maybe you could also add this to make it work :
else if (!strcasecmp("#",ev))
{
cin >> b;
cout << "Comment: " << b << endl;
continue;
}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.