From 0bf2a43aad594673e5994dba5a894be623d91690 Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Thu, 13 Apr 2017 12:32:35 -0700 Subject: Preprocessor fix --- cpp/src/Slice/Preprocessor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpp/src/Slice/Preprocessor.cpp') diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp index 9ed4eee10ab..e275bcd3024 100644 --- a/cpp/src/Slice/Preprocessor.cpp +++ b/cpp/src/Slice/Preprocessor.cpp @@ -173,7 +173,10 @@ FILE* Slice::Preprocessor::preprocess(bool keepComments, const string& extraArg) { vector args; - args.push_back(extraArg); + if(!extraArg.empty()) + { + args.push_back(extraArg); + } return preprocess(keepComments, args); } -- cgit v1.2.3