preprocessor: Handle ##

This commit is contained in:
Daniel Marjamäki 2009-01-20 18:28:24 +00:00
parent fad65663e5
commit d82314b365
2 changed files with 3 additions and 1 deletions

View File

@ -589,6 +589,8 @@ public:
while ((tok = tok->next()) != NULL)
{
std::string str = tok->str();
if (str == "##")
continue;
if (tok->isName())
{
for (unsigned int i = 0; i < _params.size(); ++i)

View File

@ -78,7 +78,7 @@ private:
TEST_CASE(string1);
TEST_CASE(string2);
TEST_CASE(preprocessor_undef);
// TODO TEST_CASE(preprocessor_doublesharp);
TEST_CASE(preprocessor_doublesharp);
TEST_CASE(preprocessor_include_in_str);
}