| 203 | } |
| 204 | |
| 205 | Str *RunCPP() { |
| 206 | Str *input; |
| 207 | if (CInput->len()) |
| 208 | input = CInput->at(0); |
| 209 | else |
| 210 | input = CCInput->at(0); |
| 211 | StrArr *args = A("-E", "-DPSINGULAR"); |
| 212 | args->add(CPPArgs)->add(input); |
| 213 | if (debug) { |
| 214 | printf("Preprocessor: %s %s\n", |
| 215 | Compiler->c_str(), |
| 216 | StrJoin(args, " ")->c_str()); |
| 217 | } |
| 218 | Str *result = ReadProcess(Compiler, args); |
| 219 | if (!result) |
| 220 | Error("preprocessor failed"); |
| 221 | if (debug >= 3) |
| 222 | Print(result); |
| 223 | result = RunPreProcessor(input, result); |
| 224 | return result; |
| 225 | } |
| 226 | |
| 227 | void PassThroughCompiler() { |
| 228 | if (debug) |
no test coverage detected