Skip to content
Snippets Groups Projects
Commit 9c60eb17 authored by mattijs's avatar mattijs
Browse files

ENH: strip off comment lines

parent 9535bcf4
Branches
Tags
No related merge requests found
...@@ -960,7 +960,14 @@ int main(int argc, char *argv[]) ...@@ -960,7 +960,14 @@ int main(int argc, char *argv[])
# endif # endif
} }
if (rawLine.empty() || rawLine[0] == '#') // Strip off anything after #
string::size_type i = rawLine.find_first_of("#");
if (i != string::npos)
{
rawLine = rawLine(0, i);
}
if (rawLine.empty())
{ {
continue; continue;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment