Skip to content

Commit 5071e20

Browse files
committed
simplecpp: Add newline to macro string passed to readfile
1 parent 8916470 commit 5071e20

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

externals/simplecpp/simplecpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1595,7 +1595,7 @@ namespace simplecpp {
15951595
* @throws std::runtime_error thrown on bad macro syntax
15961596
*/
15971597
Macro(const std::string &name, const std::string &value, std::vector<std::string> &f) : nameTokDef(nullptr), files(f), tokenListDefine(f), valueDefinedInCode_(false) {
1598-
const std::string def(name + ' ' + value);
1598+
const std::string def(name + ' ' + value + '\n');
15991599
StdCharBufStream stream(reinterpret_cast<const unsigned char*>(def.data()), def.size());
16001600
tokenListDefine.readfile(stream);
16011601
if (!parseDefine(tokenListDefine.cfront()))

0 commit comments

Comments
 (0)